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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b04db024f20b0a7cec937a47fd6659415460139
|
4
|
+
data.tar.gz: 4fffd647ab9c383eb53f7e8c24f42040afc4ebda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 <<
|
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 <<
|
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
|
-
"
|
173
|
-
"
|
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
|
|
data/lib/fulmar/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2016-06-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|