Closed caphrim007 closed 8 years ago
Is it possible to get the name of the VM that was matched upon if the config.trigger.after :up, :vm => [/something/] triggers?
config.trigger.after :up, :vm => [/something/]
For example, is it available as a parameter to the block or somewhere else??
answering my own question, yes, here's an example
config.trigger.after :up, :vm => [/ha[0-9]+/] do |m| puts "hi #{@machine.name}" end
Is it possible to get the name of the VM that was matched upon if the
config.trigger.after :up, :vm => [/something/]
triggers?For example, is it available as a parameter to the block or somewhere else??