fulmar 1.8.8 → 1.8.9

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: 5085cd66e365f250a309d6d643a1a91f514af77b
4
- data.tar.gz: 1cf2403888b40eadcfab3399e453c58aa599ce3d
3
+ metadata.gz: 6b04db024f20b0a7cec937a47fd6659415460139
4
+ data.tar.gz: 4fffd647ab9c383eb53f7e8c24f42040afc4ebda
5
5
  SHA512:
6
- metadata.gz: a40b75a63b220bc1a3e7eae7e1c41d62a84fa8dfdb2fea65d386aad4a2cc9fdc86faefa957bdeafcd8a9462eefe2462f8475e6cfa47260e3ae5487d9180d67d2
7
- data.tar.gz: d327187a754f33e5c25c903c3b24cd1d141791fead1dc2195f53745ece81d063a17c1410949142e400ecfca9d90e8d2c831dacfa8c52640e3869fe53c70c0499
6
+ metadata.gz: fa3f3ef7cc24b9f367534f34aa37b425879c2ae5d29b6e0c09ef1227ef7536ab85a1eb74bd2a158fa99880730f22e81d1c4a9b1dd8d877b24d17b66c2d5f2af8
7
+ data.tar.gz: 04d372920dd4cfc505998f2cc86c02768358a9df37322024667308f24b20efa0036e88e182ae9db14174793b249ad74af64db9db893f1179fd51192308feacfa
@@ -64,10 +64,16 @@ module Fulmar
64
64
  path
65
65
  end
66
66
 
67
+ def rsync_excludes
68
+ return nil unless @config[:rsync][:exclude]
69
+ excludes = [*@config[:rsync][:exclude]]
70
+ excludes.map { |exclude| "--exclude='#{exclude}'" }.join(' ')
71
+ end
72
+
67
73
  # Assembles all rsync command line parameters from the configuration options
68
74
  def rsync_command_options
69
75
  options = ['-rl']
70
- options << "--exclude='#{@config[:rsync][:exclude]}'" if @config[:rsync][:exclude]
76
+ options << rsync_excludes if rsync_excludes
71
77
  options << "--exclude-from='#{@config[:rsync][:exclude_file]}'" if @config[:rsync][:exclude_file]
72
78
  options << "--owner --group --chown='#{@config[:rsync][:chown]}'" if @config[:rsync][:chown]
73
79
  options << "--chmod='#{@config[:rsync][:chmod]}'" if @config[:rsync][:chmod]
@@ -148,7 +148,7 @@ module Fulmar
148
148
  # @return [String] the command
149
149
  def rsync_command
150
150
  options = ['-rl']
151
- options << "--exclude='#{@config[:rsync][:exclude]}'" if @config[:rsync][:exclude]
151
+ options << rsync_excludes if rsync_excludes
152
152
  options << "--exclude-from='#{@config[:rsync][:exclude_file]}'" if @config[:rsync][:exclude_file]
153
153
  options << "--chown='#{@config[:rsync][:chown]}'" if @config[:rsync][:chown]
154
154
  options << "--chmod='#{@config[:rsync][:chmod]}'" if @config[:rsync][:chmod]
@@ -169,8 +169,8 @@ module Fulmar
169
169
  # @return [true, false] success
170
170
  def create_symlink(release = nil)
171
171
  @remote_shell.run [
172
- "rm -f #{@config[:remote_path]}/current",
173
- "ln -s #{release ? @config[:releases_dir] + '/' + release : release_dir} current"
172
+ "ln -s #{release ? @config[:releases_dir] + '/' + release : release_dir} current_new",
173
+ "mv -T #{@config[:remote_path]}/current_new #{@config[:remote_path]}/current"
174
174
  ]
175
175
  end
176
176
 
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.8.8'
3
+ VERSION = '1.8.9'
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.8
4
+ version: 1.8.9
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-06-06 00:00:00.000000000 Z
12
+ date: 2016-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler