Class: VagrantPlugins::ShellCommander::Command
- Inherits:
-
Object
- Object
- VagrantPlugins::ShellCommander::Command
- Defined in:
- lib/vagrant-shell-commander/command.rb
Overview
Main plugin command
Instance Attribute Summary collapse
-
#env ⇒ Object
Returns the value of attribute env.
Instance Method Summary collapse
-
#execute ⇒ Object
Main entry point of this command.
Instance Attribute Details
#env ⇒ Object
Returns the value of attribute env.
5 6 7 |
# File 'lib/vagrant-shell-commander/command.rb', line 5 def env @env end |
Instance Method Details
#execute ⇒ Object
Main entry point of this command
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/vagrant-shell-commander/command.rb', line 9 def execute = OptionManager.new.execute argv = ([:parser]) return unless argv if [nil, ''].include? [:values][:cmd] env.ui.info [:parser] else with_target_vms(argv) do |machine| manage_machine(machine, ) end end 0 end |