Class: VagrantHosts::Command::List
- Inherits:
-
Object
- Object
- VagrantHosts::Command::List
- Defined in:
- lib/vagrant-hosts/command/list.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(argv, env) ⇒ List
constructor
A new instance of List.
Constructor Details
#initialize(argv, env) ⇒ List
Returns a new instance of List.
6 7 8 9 10 11 12 |
# File 'lib/vagrant-hosts/command/list.rb', line 6 def initialize(argv, env) @argv = argv @env = env @cmd_name = 'hosts list' split_argv end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/vagrant-hosts/command/list.rb', line 14 def execute argv = (parser) @env.ui.info format_hosts 0 end |