fulmar 2.2.2 → 2.2.3
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 +5 -5
- data/README.md +4 -4
- data/lib/fulmar/infrastructure/service/ssh_config_service.rb +4 -4
- data/lib/fulmar/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0336132e3fcbed16ff2144fe52793cb878a08537dbcd840aa59c63b78f8ac7f1
|
4
|
+
data.tar.gz: 52372491d8131f37d8bd0b5926dd262e17cd4cf0e07acc40fc7965a2b761587d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39f7077270b7b6fc4b3a5c487827ec14a548acbc47a7faa525195c59da62e0eb322d31c9eaa0e22cc781b96ff6bfdb50066dbc1960b5abddf419d567bdccdb74
|
7
|
+
data.tar.gz: a4c1faae307fffd31faa4389cbc96dd33831158f30b3e924e15d4f16bf65dca12e3c35796f26d52b3634b279689a43a16dbec7f4aad91b24d214f6b3b79b770f
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ compatible (i.e. database).
|
|
15
15
|
## Warning
|
16
16
|
|
17
17
|
Version 1.10.0 of Fulmar removes some features that we (CORE4) rarely used and which
|
18
|
-
caused the deployments to slow down
|
18
|
+
caused the deployments to slow down. The gems needed to be compiled against the
|
19
19
|
installed libraries. If you need support to query databases (more than just dumps)
|
20
20
|
or use dependencies, you will need to explicitly specify version `~> 1.9.0`.
|
21
21
|
Fulmar 2.0 will support these features via plugins.
|
@@ -226,14 +226,14 @@ environments:
|
|
226
226
|
|
227
227
|
These are:
|
228
228
|
- **delete**: true/false, Should additional files be deleted from the remote host? The default is "true", as you don't
|
229
|
-
want to have legacy files opening security holes on your server.
|
229
|
+
want to have legacy files opening security holes on your server.
|
230
230
|
- **exclude**: regexp, which works with "--exclude" from rsync. Usually, you should prefer the next option
|
231
231
|
- **exclude_file**: Filename of the exclude file relative to "local_path". If you have a file called .rsyncignore in
|
232
|
-
"local_path" this will be used automatically.
|
232
|
+
"local_path" this will be used automatically.
|
233
233
|
- **chown**: chown files on remote machine to this user
|
234
234
|
- **chmod**: change mode of files on remote machines
|
235
235
|
- **direction**: up/down, Should the files be uploaded or downloaded? The latter is useful if you want to download
|
236
|
-
images created by a cms on the remote machine.
|
236
|
+
images created by a cms on the remote machine.
|
237
237
|
|
238
238
|
### rsync with versions
|
239
239
|
|
@@ -55,7 +55,7 @@ module Fulmar
|
|
55
55
|
input_file = File.open(@known_hosts_file, 'r')
|
56
56
|
output_file = File.open(@known_hosts_file + '.temp', 'w')
|
57
57
|
while (line = input_file.gets)
|
58
|
-
output_file.puts(line) unless /^\[?#{
|
58
|
+
output_file.puts(line) unless /^\[?#{Regexp.escape(hostname)}(?:\]:\d+)?[ ,]/ =~ line
|
59
59
|
end
|
60
60
|
input_file.close
|
61
61
|
output_file.close
|
@@ -77,7 +77,7 @@ module Fulmar
|
|
77
77
|
def host_exists?(hostname)
|
78
78
|
config_file = File.open(@config_file, 'r')
|
79
79
|
while (line = config_file.gets)
|
80
|
-
if /\s*Host #{
|
80
|
+
if /\s*Host #{Regexp.escape(hostname)}\s*$/ =~ line
|
81
81
|
config_file.close
|
82
82
|
return true
|
83
83
|
end
|
@@ -153,7 +153,7 @@ module Fulmar
|
|
153
153
|
if line.strip[0] == '#'
|
154
154
|
cache << line
|
155
155
|
else
|
156
|
-
return remove_trailing_newlines(before) if /^Host\s#{hostname}$/ =~ line.strip
|
156
|
+
return remove_trailing_newlines(before) if /^Host\s#{Regexp.escape(hostname)}$/ =~ line.strip
|
157
157
|
before += cache
|
158
158
|
cache = []
|
159
159
|
before << line
|
@@ -163,7 +163,7 @@ module Fulmar
|
|
163
163
|
end
|
164
164
|
|
165
165
|
def block_after(data, hostname)
|
166
|
-
data = data.drop_while { |i| !/^Host\s#{hostname}$/.match(i.strip) }
|
166
|
+
data = data.drop_while { |i| !/^Host\s#{Regexp.escape(hostname)}$/.match(i.strip) }
|
167
167
|
return [] if data.empty?
|
168
168
|
data.shift
|
169
169
|
|
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.3
|
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:
|
12
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.7.4
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: A deployment task manager.
|