fulmar 1.8.13 → 1.8.14

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: 5b8e4070a59dfdb3a45d718cb5d0fe7dc1a17b71
4
- data.tar.gz: c0bba3e49680e3b2445fb1480dbd3905d792ec37
3
+ metadata.gz: 906b8d1d91aa1dba5cc9172abfbf780ab94491e7
4
+ data.tar.gz: 1a80fec65abb7e3b8dc8af47ef5255554ba0c528
5
5
  SHA512:
6
- metadata.gz: cdd2fcdb2364b1ee05ab5f3daa224d47ac75e15d5f56cb23a3969cc85be5e986d91ed000697e3b086b541d78d8e9b1eda6997118afd8313da4161ba69e9f8f3d
7
- data.tar.gz: eb24f9381d79d8973cbbf2557886472f8594519d753e1b08a898d8983fe90cf5489baa4b61352d0a169ee6ea258671a08b3ef2de23b8195376f0f13bf8499f9c
6
+ metadata.gz: 311c8349f2c86fd1cbec2a1d6c4cda697a012669554d73e8bbf52e3ae49a1230506165da1da2b65c51544aed10e0f5e40ce1c5dc1ee46eddaeddf09fbd42648f
7
+ data.tar.gz: fcdb1c522108ebec0a26d568b533e07aadd3eae03960a46ff6e707aabc0a650f583991dd36b225fb327f58307e4528457b19468d536eb8272567820a92d6e6a0
@@ -190,19 +190,18 @@ module Fulmar
190
190
  # @return [true, false] success
191
191
  def add_shared
192
192
  commands = [] # Collect all remote commands first, then execute them in one step to avoid reconnecting very often
193
- @config[:shared].each do |dir|
194
- commands << "mkdir -p \"#{release_dir}/#{dir}\""
193
+ @config[:shared].each do |path|
194
+ commands << "mkdir -p \"#{release_dir}/#{File.dirname(path)}\""
195
195
 
196
- unless remote_dir_exists?("#{@config[:shared_dir]}/#{dir}")
197
- commands << "mkdir -p \"#{@config[:shared_dir]}/#{File.dirname(dir)}\""
198
- commands << "cp -pr \"#{release_dir}/#{dir}\" \"#{@config[:shared_dir]}/#{File.dirname(dir)}\""
196
+ unless remote_dir_exists?("#{@config[:shared_dir]}/#{path}")
197
+ commands << "mkdir -p \"#{@config[:shared_dir]}/#{File.dirname(path)}\""
198
+ commands << "cp -pr \"#{release_dir}/#{path}\" \"#{@config[:shared_dir]}/#{File.dirname(path)}\""
199
199
  end
200
200
 
201
- commands << "rm -fr \"#{release_dir}/#{dir}\""
202
- commands << "mkdir -p \"#{release_dir}/#{File.dirname(dir)}\""
203
- commands << "ln -s \"#{@config[:remote_path]}/#{@config[:shared_dir]}/#{dir}\" \"#{release_dir}/#{dir}\""
201
+ commands << "rm -fr \"#{release_dir}/#{path}\""
202
+ commands << "mkdir -p \"#{release_dir}/#{File.dirname(path)}\""
203
+ commands << "ln -s \"#{@config[:remote_path]}/#{@config[:shared_dir]}/#{path}\" \"#{release_dir}/#{path}\""
204
204
  end
205
-
206
205
  @remote_shell.run commands if commands.length > 0
207
206
  end
208
207
 
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.8.13'
3
+ VERSION = '1.8.14'
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.8.13
4
+ version: 1.8.14
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: 2016-09-13 00:00:00.000000000 Z
12
+ date: 2016-10-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler