fulmar 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '084a0cb7a3184a653aecace439af926839f44c27'
|
4
|
+
data.tar.gz: 67ec129220e5b9232d42cf6eec32f913e80e46b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01556aaea93f3c584aafc1400f07550fe78be6352f3a056dcad534ec2a02a6321874dee366a4b4d68ebf9f9d36fde12be3148addb8c84d35933ca0cd7de883b3
|
7
|
+
data.tar.gz: 0f74442951e8667134c390d1cee4a569d20802e0421e0bfd08663b21f8f1a4dac8bda6bd58e6c87e785f589a3905b276eb329a50bcc559cbefa1b3be2cda5d50
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'pathname'
|
2
3
|
require 'fulmar/domain/model/project'
|
3
4
|
require 'active_support/core_ext/object/blank'
|
4
5
|
require 'active_support/core_ext/hash/deep_merge'
|
@@ -146,7 +147,7 @@ module Fulmar
|
|
146
147
|
# Prepends the base to the path if it is not already absolute
|
147
148
|
def absolutize(path, base = @base_path)
|
148
149
|
return base if path == '.'
|
149
|
-
path
|
150
|
+
(Pathname.new path).absolute? ? path : base + '/' + path
|
150
151
|
end
|
151
152
|
|
152
153
|
# Checks if a key is a local path
|
@@ -158,7 +159,7 @@ module Fulmar
|
|
158
159
|
# @base_path or the local_path from the environment
|
159
160
|
def absolutize_paths
|
160
161
|
each do |_env, _target, data|
|
161
|
-
data.
|
162
|
+
data.each_key do |key|
|
162
163
|
data[:local_path] = absolutize(data[:local_path]) if data[:local_path]
|
163
164
|
if local_path?(key) && data[key].class == String
|
164
165
|
data[key] = absolutize(data[key], data[:local_path] || @base_path)
|
@@ -176,7 +176,10 @@ module Fulmar
|
|
176
176
|
# Copies the data from the sync temp to the actual release directory
|
177
177
|
# @return [true, false] success
|
178
178
|
def copy_temp_to_release
|
179
|
-
@remote_shell.run
|
179
|
+
@remote_shell.run [
|
180
|
+
"cp -pR #{@config[:temp_dir]} #{release_dir}",
|
181
|
+
"touch #{release_dir}"
|
182
|
+
]
|
180
183
|
end
|
181
184
|
|
182
185
|
# Set the symlink to the given release or the return value of release_dir() otherwise
|
@@ -30,7 +30,7 @@ module Fulmar
|
|
30
30
|
|
31
31
|
parent_dir_path = File.expand_path('..', path)
|
32
32
|
|
33
|
-
parent_dir_path == '/' ? paths : get_parent_directory_paths(parent_dir_path, paths)
|
33
|
+
parent_dir_path == '/' || parent_dir_path.include?(':/') ? paths : get_parent_directory_paths(parent_dir_path, paths)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
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: 2.2.
|
4
|
+
version: 2.2.1
|
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-
|
12
|
+
date: 2017-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|