class VagrantHosts::Command
Public Class Methods
new(argv, env)
click to toggle source
# File lib/vagrant-hosts/command.rb, line 18 def initialize(argv, env) @argv = argv @env = env @cmd_name = 'hosts' split_argv register_subcommands end
synopsis()
click to toggle source
# File lib/vagrant-hosts/command.rb, line 14 def self.synopsis 'Information about hostnames managed by the vagrant-hosts plugin' end
Public Instance Methods
execute()
click to toggle source
# File lib/vagrant-hosts/command.rb, line 28 def execute invoke_subcommand end
Private Instance Methods
register_subcommands()
click to toggle source
# File lib/vagrant-hosts/command.rb, line 34 def register_subcommands @subcommands = Vagrant::Registry.new @subcommands.register('puppetize') do VagrantHosts::Command::Puppetize end @subcommands.register('list') do VagrantHosts::Command::List end end