Class: VagrantShellCommander::Command
- Inherits:
-
Object
- Object
- VagrantShellCommander::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.
4 5 6 |
# File 'lib/vagrant-shell-commander/command.rb', line 4 def env @env end |
Instance Method Details
#execute ⇒ Object
Main entry point of this command
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vagrant-shell-commander/command.rb', line 8 def execute = OptionManager.new.execute argv = ([:parser]) return unless argv unless [nil, ''].include? [:values][:cmd] with_target_vms(argv) do |machine| manage_machine(machine, ) end end 0 end |