class VagrantHosts::Command
Public Class Methods
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
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
Private Instance Methods
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