From fe661afc33a967689e0c275db156c6c4bde3df8a Mon Sep 17 00:00:00 2001 From: Anton Aksola Date: Mon, 7 Apr 2014 10:14:56 +0300 Subject: pass command string to :all block for (example) to comment a command that was run --- lib/oxidized/model/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/model.rb b/lib/oxidized/model/model.rb index ccc03b4..ca08332 100644 --- a/lib/oxidized/model/model.rb +++ b/lib/oxidized/model/model.rb @@ -77,7 +77,7 @@ module Oxidized out = @input.cmd string return false unless out self.class.cmds[:all].each do |all_block| - out = instance_exec out, &all_block + out = instance_exec out, string, &all_block end out = instance_exec out, &block if block out -- cgit v1.2.1