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
Class Method Summary collapse
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.
18 19 20 21 22 23 24 25 26 |
# File 'lib/vagrant-hosts/command.rb', line 18 def initialize(argv, env) @argv = argv @env = env @cmd_name = 'hosts' split_argv register_subcommands end |
Class Method Details
.synopsis ⇒ Object
14 15 16 |
# File 'lib/vagrant-hosts/command.rb', line 14 def self.synopsis 'Information about hostnames managed by the vagrant-hosts plugin' end |
Instance Method Details
#execute ⇒ Object
28 29 30 |
# File 'lib/vagrant-hosts/command.rb', line 28 def execute invoke_subcommand end |