lib/catfish/cli.rb in catfish-0.0.3 vs lib/catfish/cli.rb in catfish-0.0.4
- old
+ new
@@ -36,25 +36,33 @@
method_option 'winrm-password', type: :string, banner: 'Password for winrm. Used with --communicator=winrm'
method_option 'shell-paths', type: :array, banner: 'A list of paths to use if shell provisioning is selected'
method_option 'ssh-username', type: :string, banner: 'SSH username'
method_option 'ssh-private-key-path', type: :string, banner: 'Path to SSH private key'
method_option 'servers', type: :array, banner: 'Initial list of servers to include in Catfishfile'
+ method_option 'plugins', type: :array, banner: 'Vagrant plugins to be installed'
def init
require 'catfish/cli/init'
Init.new(options.dup, self).run
end
desc 'resolve [OPTIONS]', 'Resolves the servers listed in Catfishfile to .lock'
def resolve
require 'catfish/cli/resolve'
- Resolve.new(options.dup, self).run
+ Resolve.new(options.dup).run
end
+ desc 'plugin', 'Install plugins defined in Catfishfile'
+ def plugin
+ require 'catfish/cli/plugin'
+ Plugin.new(options.dup).run
+ end
+
desc 'provision [OPTIONS]', 'Provision to the servers specified in Catfishfile.lock'
method_option 'provider', type: :string, default: 'managed', banner: 'Vagrant provider to use.'
method_option 'parallel', type: :boolean, default: 'false', banner: 'Run provisioning in parallel'
def provision
invoke :resolve
+ invoke :plugin
require 'catfish/cli/provision'
Provision.new(options.dup).run
end
end
end