mofa 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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."
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: