fulmar 1.8.6 → 1.8.7

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: 99ced20c31e852a42ba296fef2e83456379fd192
4
- data.tar.gz: 1be06bf27f2a58794bea68457e1e72ac3b902d07
3
+ metadata.gz: fd110f1ac0dcff4f38c32683873c56c2b3a02608
4
+ data.tar.gz: d438e8d20967b6af6a9ae43a4d9ffc2ce13839ba
5
5
  SHA512:
6
- metadata.gz: 2e76c556be93ddbf070d679425faa1ecab863de50f49b3c37f1a67852ebf5f97afd191379a40305dd18a53f3904e988440edadf9c02dbfc83ec64304bdc7b740
7
- data.tar.gz: 46bebcb2331f5c03f09f568c68886a957fe234e642cffa4aa8fba1ab0b112f33f9646e48c89f21697fe468248b28e352175a12b2d376ea93fbe99328dd5895b3
6
+ metadata.gz: 270e037bf19bd4b1f98e8c5489def4094f5c305ad4ba1fa7c064b68289a2d8311aa94f9672aafc8f12b1b46de3bba7a11b9a4ef131a48039a1226fc3bdfaf4e9
7
+ data.tar.gz: f4581029ea88d49171fad4614b9dba5fd7073964243d7bbb5356b046d5f12259a7e90eaeae8571f0beb442d8c6234b5fde1054e398896878324e9f8835ac8786
@@ -30,9 +30,8 @@ def name(env, target, counts)
30
30
  end
31
31
 
32
32
  def create_update_tasks(db_configs)
33
- counts = {}
33
+ counts = Hash.new(0)
34
34
  db_configs.each do |config|
35
- counts[config.first] = 0 unless counts[config.first]
36
35
  counts[config.first] += 1
37
36
  end
38
37
 
@@ -27,7 +27,7 @@ module Fulmar
27
27
  delete: true
28
28
  },
29
29
  symlinks: {},
30
- limit_releases: 10,
30
+ limit_releases: 5,
31
31
  shared: []
32
32
  }
33
33
 
@@ -160,7 +160,7 @@ module Fulmar
160
160
  # Copies the data from the sync temp to the actual release directory
161
161
  # @return [true, false] success
162
162
  def copy_temp_to_release
163
- @remote_shell.run "cp -r #{@config[:temp_dir]} #{release_dir}"
163
+ @remote_shell.run "cp -pr #{@config[:temp_dir]} #{release_dir}"
164
164
  end
165
165
 
166
166
  # Set the symlink to the given release or the return value of release_dir() otherwise
@@ -186,7 +186,7 @@ module Fulmar
186
186
 
187
187
  unless remote_dir_exists?("#{@config[:shared_dir]}/#{dir}")
188
188
  commands << "mkdir -p \"#{@config[:shared_dir]}/#{File.dirname(dir)}\""
189
- commands << "cp -r \"#{release_dir}/#{dir}\" \"#{@config[:shared_dir]}/#{File.dirname(dir)}\""
189
+ commands << "cp -pr \"#{release_dir}/#{dir}\" \"#{@config[:shared_dir]}/#{File.dirname(dir)}\""
190
190
  end
191
191
 
192
192
  commands << "rm -fr \"#{release_dir}/#{dir}\""
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.8.6'
3
+ VERSION = '1.8.7'
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.6
4
+ version: 1.8.7
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-01-26 00:00:00.000000000 Z
12
+ date: 2016-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  version: '0'
202
202
  requirements: []
203
203
  rubyforge_project:
204
- rubygems_version: 2.4.5.1
204
+ rubygems_version: 2.5.1
205
205
  signing_key:
206
206
  specification_version: 4
207
207
  summary: A deployment task manager.
@@ -209,4 +209,3 @@ test_files:
209
209
  - spec/lib/fulmar/service/helper_service_spec.rb
210
210
  - spec/spec_helper.rb
211
211
  - test/rsync_with_versions.rb
212
- has_rdoc: