lib/kpm/tasks.rb in kpm-0.9.0 vs lib/kpm/tasks.rb in kpm-0.10.0
- old
+ new
@@ -70,10 +70,26 @@
desc 'cleanup', 'Delete old plugins'
def cleanup
Uninstaller.new(options[:destination]).uninstall_non_default_plugins(options[:dry_run])
end
+ method_option :group_id,
+ type: :string,
+ default: KillbillServerArtifact::KILLBILL_GROUP_ID,
+ desc: 'The Kill Bill war artifact group-id'
+ method_option :artifact_id,
+ type: :string,
+ default: KillbillServerArtifact::KILLBILL_ARTIFACT_ID,
+ desc: 'The Kill Bill war artifact id'
+ method_option :packaging,
+ type: :string,
+ default: KillbillServerArtifact::KILLBILL_PACKAGING,
+ desc: 'The Kill Bill war packaging'
+ method_option :classifier,
+ type: :string,
+ default: KillbillServerArtifact::KILLBILL_CLASSIFIER,
+ desc: 'The Kill Bill war classifier'
method_option :destination,
type: :string,
default: nil,
desc: 'A different folder other than the current working directory.'
method_option :bundles_dir,
@@ -91,13 +107,13 @@
desc 'pull_kb_server_war <version>', 'Pulls Kill Bill server war and places it on your machine. If version was not specified it uses the latest released version.'
def pull_kb_server_war(version = 'LATEST')
installer = BaseInstaller.new(logger,
options[:overrides],
options[:ssl_verify])
- response = installer.install_killbill_server(KillbillServerArtifact::KILLBILL_GROUP_ID,
- KillbillServerArtifact::KILLBILL_ARTIFACT_ID,
- KillbillServerArtifact::KILLBILL_PACKAGING,
- KillbillServerArtifact::KILLBILL_CLASSIFIER,
+ response = installer.install_killbill_server(options[:group_id],
+ options[:artifact_id],
+ options[:packaging],
+ options[:classifier],
version,
options[:destination],
options[:bundles_dir],
options[:force_download],
options[:verify_sha1])