Hey guys, Tried asking on IRC but no luck.
Is it possible to load an object for a specific machine within VagrantPlugins ? I can't seem to be able to get it to work. For instance, you can do this to retrieve the machine from the current scope (the machine the action is being taken on): 1. def initialize(app, env) 2. @app = app 3. end 4. 5. def call(env) 6. machine = env[:machine] 7. 8. if machine.state.id != :active 9. return 0 10. end 11. [...] Let's pretend I want to check the state of another VM in the context of a dependency, how can I load a machine object for a specific machine ? Perhaps by name ? I saw usage that looked a bit like: env.machine[machine_name, provider] or @env.machine[machine_name, provider] But if I try to use the syntax above, I get the following errors respectively: `call': undefined method `machine' for #<Hash:0x00000101be8960> (NoMethodError) `call': undefined method `machine' for nil:NilClass (NoMethodError) Any ideas ? Appreciate it, thanks ! -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
