fulmar 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e53c22af46d2e7151890c776233821f7304b4782
4
- data.tar.gz: c4c03d2687dce50016503eafabdf5decac714450
3
+ metadata.gz: 6c0254651c027ef775ad9e568f66d86aad0ae858
4
+ data.tar.gz: eaac4a6a2a32db19ce421432f4151bac017ba12f
5
5
  SHA512:
6
- metadata.gz: 1abba76bc636d9c47f5cb70a2a5b905cd484c53403369eea06413aa6a7f0c3cfc2928d9ee8a7afac75c0fcd3c4628d27a7ac009800035f355ca383e71b13e94d
7
- data.tar.gz: f01a51efc076f08486967cef80835d7e3457467285c5988f268d1f16ac03fec84c64d403f7057a558a797e919f876cea613a6c8aaa6b54fd5a5fe73915eaa4bc
6
+ metadata.gz: c3a2380798df491fc87e15ceb44d7d48576df1c98d015c91101f35ae86878e32424395098d48cfd1c322fc2a1a9b18d60b9802671ee84bc0e3324b4135d0c314
7
+ data.tar.gz: 89334e747f73215ec35e5b7f733c5f6dbfe9d89815bcd72987beb0bb7fdff2c1dafc5720dbc6f84b0948ca887a0b07339de5932627d095bca7c6be1bf899350c
@@ -77,7 +77,7 @@ module Fulmar
77
77
  config_file.puts "Host #{hostname}"
78
78
  CONFIG_MAP.keys.each do |key|
79
79
  unless ssh_config[key].blank?
80
- config_file.puts " #{CONFIG_MAP[key]} \"#{ssh_config[key].gsub('"', '\\"')}\""
80
+ config_file.puts " #{CONFIG_MAP[key]} \"#{ssh_config[key].to_s.gsub('"', '\\"')}\""
81
81
  end
82
82
  end
83
83
 
@@ -24,7 +24,7 @@ module Fulmar
24
24
  exclude_file: nil,
25
25
  chown: nil,
26
26
  chmod: nil,
27
- delete: true
27
+ delete: true
28
28
  },
29
29
  symlinks: {},
30
30
  limit_releases: 5,
@@ -193,7 +193,7 @@ module Fulmar
193
193
  @config[:shared].each do |path|
194
194
  commands << "mkdir -p \"#{release_dir}/#{File.dirname(path)}\""
195
195
 
196
- unless remote_dir_exists?("#{@config[:shared_dir]}/#{path}")
196
+ unless remote_path_exists?("#{@config[:shared_dir]}/#{path}")
197
197
  commands << "mkdir -p \"#{@config[:shared_dir]}/#{path}\""
198
198
  end
199
199
 
@@ -205,8 +205,8 @@ module Fulmar
205
205
  @remote_shell.run commands if commands.length > 0
206
206
  end
207
207
 
208
- def remote_dir_exists?(dir)
209
- @remote_shell.run "test -d \"#{dir}\""
208
+ def remote_path_exists?(dir)
209
+ @remote_shell.run "test -e \"#{dir}\""
210
210
  end
211
211
  end
212
212
  end
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.9.1'
3
+ VERSION = '1.9.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Siegl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-10 00:00:00.000000000 Z
12
+ date: 2017-02-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler