lib/kpm/tasks.rb in kpm-0.1.6 vs lib/kpm/tasks.rb in kpm-0.1.7
- old
+ new
@@ -172,10 +172,14 @@
options[:overrides],
options[:ssl_verify])
say "Artifact has been retrieved and can be found at path: #{response[:file_path]}", :green
end
+ method_option :destination,
+ :type => :string,
+ :default => nil,
+ :desc => 'A different folder other than the default bundles directory.'
method_option :force_download,
:type => :boolean,
:default => false,
:desc => 'Force download of the artifact even if it exists'
method_option :verify_sha1,
@@ -185,10 +189,10 @@
desc 'pull_defaultbundles', 'Pulls the default OSGI bundles from Sonatype and places it on your machine.'
def pull_defaultbundles(kb_version='LATEST')
response = BaseInstaller.new(logger,
options[:overrides],
options[:ssl_verify])
- .install_default_bundles(nil,
+ .install_default_bundles(options[:destination],
nil,
kb_version,
options[:force_download],
options[:verify_sha1])
say "Artifact has been retrieved and can be found at path: #{response[:file_path]}", :green