mofa 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mofa/upload_cmd.rb +2 -2
- data/lib/mofa/version.rb +1 -1
- metadata +1 -1
data/lib/mofa/upload_cmd.rb
CHANGED
@@ -47,7 +47,7 @@ class UploadCmd < MofaCmd
|
|
47
47
|
|
48
48
|
# if the upload target is not a proper binrepo with a designated ".../import" folder -> create the "right" folder structure
|
49
49
|
unless Mofa::Config.config['binrepo_import_dir'].match(/import$/)
|
50
|
-
Net::SSH.start(Mofa::Config.config['binrepo_host'], Mofa::Config.config['binrepo_ssh_user'], :keys => [Mofa::Config.config['binrepo_ssh_keyfile']], :port => Mofa::Config.config['binrepo_ssh_port'], :verbose => :error) do |ssh|
|
50
|
+
Net::SSH.start(Mofa::Config.config['binrepo_host'], Mofa::Config.config['binrepo_ssh_user'], :keys => [Mofa::Config.config['binrepo_ssh_keyfile']], :port => Mofa::Config.config['binrepo_ssh_port'], :verbose => :error, :forward_agent => false) do |ssh|
|
51
51
|
puts "Remotely creating target dir \"#{import_dir}/#{cookbook.name}/#{cookbook.version}\""
|
52
52
|
out = ssh_exec!(ssh, "[ -d #{import_dir}/#{cookbook.name}/#{cookbook.version} ] || mkdir -p #{import_dir}/#{cookbook.name}/#{cookbook.version}")
|
53
53
|
fail "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
|
@@ -56,7 +56,7 @@ class UploadCmd < MofaCmd
|
|
56
56
|
end
|
57
57
|
|
58
58
|
begin
|
59
|
-
Net::SFTP.start(Mofa::Config.config['binrepo_host'], Mofa::Config.config['binrepo_ssh_user'], :keys => [Mofa::Config.config['binrepo_ssh_keyfile']], :port => Mofa::Config.config['binrepo_ssh_port'], :verbose => :error) do |sftp|
|
59
|
+
Net::SFTP.start(Mofa::Config.config['binrepo_host'], Mofa::Config.config['binrepo_ssh_user'], :keys => [Mofa::Config.config['binrepo_ssh_keyfile']], :port => Mofa::Config.config['binrepo_ssh_port'], :verbose => :error, :forward_agent => false) do |sftp|
|
60
60
|
sftp.upload!("#{cookbook.pkg_dir}/#{cookbook.pkg_name}", "#{import_dir}/#{cookbook.pkg_name}")
|
61
61
|
end
|
62
62
|
puts "OK."
|
data/lib/mofa/version.rb
CHANGED