summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Aksola <anton.aksola@nebula.fi>2014-04-07 10:14:56 +0300
committerAnton Aksola <anton.aksola@nebula.fi>2014-04-07 10:14:56 +0300
commitfe661afc33a967689e0c275db156c6c4bde3df8a (patch)
tree5364cf9232c1d62bbd804bcbaf6beff51b3796eb
parent2f928665589c711f6aefbefd1994ce4e0516c0ba (diff)
pass command string to :all block for (example) to comment a command
that was run
-rw-r--r--lib/oxidized/model/model.rb2
1 files changed, 1 insertions, 1 deletions
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