deplomat 0.2.19 → 0.2.20

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
  SHA256:
3
- metadata.gz: a5a59554a67370399c1549d1efaa1900ff11f5dfffff2da0279c8faf0df56ce5
4
- data.tar.gz: 2a4194a7208c310ec6ec5c365ce27bf71d577bfca25934e97e6544e19db501d7
3
+ metadata.gz: 9d96cc91e3fb5f9ac448d81d16fa287689bced45d0e3f960505d76c2227f9fa2
4
+ data.tar.gz: ca95f0c856ff64f45c2fb29da35c543453aeb2fe73e5c7f03ba48436795caa24
5
5
  SHA512:
6
- metadata.gz: e6ebf8007e6bd9e4e22a969e91246d267b7e01df0d68899300b24654f257e0e3bad60c1af7515bcd2e76f656076b8f0da3171aa64156ae0b2ff3d935d0899ba5
7
- data.tar.gz: ce1470376799e1572739dde2ea14df4d62a4374afac0a658c632d1e2f447e46bd7db61d6e3c6ac01b9eefb4d2eef16dda085ce52368dd0080c7812b5983b0eae
6
+ metadata.gz: 41b1dd78962774c875ed8822abbeee92b917a67d084c187f17475fa74e10c5920d86b2694971fbd9d3cb2f1e8b5e5c9167554d1fdefa714041eab45e9ce1c2cf
7
+ data.tar.gz: c907d938a330a5c89ea6f382960a412146efbc28d48b7f07e76d595ec33641b3420011f5b56ea3cacb25b69f5178e0a562931aa6ef3735cebc171f9caea79b0f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deplomat (0.2.19)
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.1)
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.19
1
+ 0.2.20
@@ -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
- print_to_terminal((exists ? "EXISTS: #{path}" : "NOT FOUND: #{path}"))
11
+ log "NOT FOUND: #{path}" if log_not_found && !exists
12
12
  exists
13
13
  end
14
14
  alias :path_exists? :path_exist?
@@ -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((status == 1 ? "NOT FOUND: #{path}" : "EXISTS: #{path}"))
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.19
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-20 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize