deplomat 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/deplomat/local_node.rb +2 -2
- data/lib/deplomat/remote_node.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d96cc91e3fb5f9ac448d81d16fa287689bced45d0e3f960505d76c2227f9fa2
|
4
|
+
data.tar.gz: ca95f0c856ff64f45c2fb29da35c543453aeb2fe73e5c7f03ba48436795caa24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41b1dd78962774c875ed8822abbeee92b917a67d084c187f17475fa74e10c5920d86b2694971fbd9d3cb2f1e8b5e5c9167554d1fdefa714041eab45e9ce1c2cf
|
7
|
+
data.tar.gz: c907d938a330a5c89ea6f382960a412146efbc28d48b7f07e76d595ec33641b3420011f5b56ea3cacb25b69f5178e0a562931aa6ef3735cebc171f9caea79b0f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
deplomat (0.2.
|
4
|
+
deplomat (0.2.20)
|
5
5
|
colorize
|
6
6
|
sys-proctable
|
7
7
|
|
@@ -10,7 +10,7 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
colorize (0.8.1)
|
12
12
|
diff-lcs (1.3)
|
13
|
-
ffi (1.14.
|
13
|
+
ffi (1.14.2)
|
14
14
|
rspec (3.8.0)
|
15
15
|
rspec-core (~> 3.8.0)
|
16
16
|
rspec-expectations (~> 3.8.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.20
|
data/lib/deplomat/local_node.rb
CHANGED
@@ -6,9 +6,9 @@ module Deplomat
|
|
6
6
|
super
|
7
7
|
end
|
8
8
|
|
9
|
-
def path_exist?(path)
|
9
|
+
def path_exist?(path, log_not_found: true)
|
10
10
|
exists = File.exist?(adjusted_path(path))
|
11
|
-
|
11
|
+
log "NOT FOUND: #{path}" if log_not_found && !exists
|
12
12
|
exists
|
13
13
|
end
|
14
14
|
alias :path_exists? :path_exist?
|
data/lib/deplomat/remote_node.rb
CHANGED
@@ -50,10 +50,10 @@ module Deplomat
|
|
50
50
|
super("#{@ssh_command} '#{command}'", nil, message: message, stdout_source: stdout_source, log_command: false, _raise_exceptions: _raise_exceptions)
|
51
51
|
end
|
52
52
|
|
53
|
-
def path_exist?(path)
|
53
|
+
def path_exist?(path, log_not_found: true)
|
54
54
|
path = adjusted_path(path)
|
55
55
|
status = execute("test -f #{path} || test -d #{path}", nil, log_command: true, _raise_exceptions: false)[:status]
|
56
|
-
log(
|
56
|
+
log("NOT FOUND: #{path}") if log_not_found && status == 1
|
57
57
|
status == 0
|
58
58
|
end
|
59
59
|
alias :path_exists? :path_exist?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deplomat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- romanitup
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|