Class: VagrantHosts::Command
- Inherits:
-
Object
- Object
- VagrantHosts::Command
- Includes:
- Helpers
- Defined in:
- lib/vagrant-hosts/command.rb
Defined Under Namespace
Modules: Helpers Classes: List, Puppetize
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(argv, env) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(argv, env) ⇒ Command
Returns a new instance of Command.
14 15 16 17 18 19 20 21 22 |
# File 'lib/vagrant-hosts/command.rb', line 14 def initialize(argv, env) @argv = argv @env = env @cmd_name = 'hosts' split_argv register_subcommands end |
Instance Method Details
#execute ⇒ Object
24 25 26 |
# File 'lib/vagrant-hosts/command.rb', line 24 def execute invoke_subcommand end |