deplomat 0.2.15 → 0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/VERSION +1 -1
- data/lib/deplomat/node.rb +6 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c80211d4c464c085f43b19d2a27f2b82d5e066c1dc31b92caa5d2cf874353dc4
|
4
|
+
data.tar.gz: d53d94174f430d4331beaa60410cc0e404a279ed3d5ed3994ed7ff39b403b46e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aee786c6a683d0ba765f8288c8eda00c50d7cee11451a669262d42d740592fed3ebb3da442466d2e27a282b63a466c24eed09d2dc52c72168d28d66e9ed2f16a
|
7
|
+
data.tar.gz: b6b96a6b4889bd2243140c3429d59e88499ed1e1981ffc737d883a02df89f95d7b91dfe088ae8c17a21aa2f109cab92034b5ace88bee0d59b3819eff9ca7b4c5
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
|
4
|
+
deplomat (0.2.16)
|
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.
|
13
|
+
ffi (1.13.1)
|
14
14
|
rspec (3.8.0)
|
15
15
|
rspec-core (~> 3.8.0)
|
16
16
|
rspec-expectations (~> 3.8.0)
|
@@ -24,16 +24,16 @@ GEM
|
|
24
24
|
diff-lcs (>= 1.2.0, < 2.0)
|
25
25
|
rspec-support (~> 3.8.0)
|
26
26
|
rspec-support (3.8.2)
|
27
|
-
sys-proctable (1.2.
|
27
|
+
sys-proctable (1.2.6)
|
28
28
|
ffi
|
29
29
|
|
30
30
|
PLATFORMS
|
31
31
|
ruby
|
32
32
|
|
33
33
|
DEPENDENCIES
|
34
|
-
Deplomat!
|
35
34
|
bundler (~> 2.0)
|
35
|
+
deplomat!
|
36
36
|
rspec
|
37
37
|
|
38
38
|
BUNDLED WITH
|
39
|
-
2.
|
39
|
+
2.1.4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.16
|
data/lib/deplomat/node.rb
CHANGED
@@ -2,8 +2,7 @@ module Deplomat
|
|
2
2
|
|
3
3
|
class Node
|
4
4
|
|
5
|
-
attr_accessor :log_to, :raise_exceptions, :logfile, :wrap_in
|
6
|
-
attr_reader :current_path
|
5
|
+
attr_accessor :log_to, :raise_exceptions, :logfile, :wrap_in, :current_path
|
7
6
|
attr_writer :stdout_lines_to_ignore
|
8
7
|
|
9
8
|
def stdout_lines_to_ignore
|
@@ -18,7 +17,7 @@ module Deplomat
|
|
18
17
|
@log_to = log_to
|
19
18
|
@logfile = logfile
|
20
19
|
@raise_exceptions = raise_exceptions
|
21
|
-
@current_path = path if path_exist?(path)
|
20
|
+
@current_path = path.sub(/\/+\Z/, '') if !path.nil? && path_exist?(path)
|
22
21
|
end
|
23
22
|
|
24
23
|
def execute(command, path=@current_path, message: [], stdout_source: :stdout, log_command: true, _raise_exceptions: @raise_exceptions)
|
@@ -123,11 +122,11 @@ module Deplomat
|
|
123
122
|
@current_path = if path =~ /\A[\/~]/ || path.nil?
|
124
123
|
path
|
125
124
|
else
|
126
|
-
File.expand_path("#{@current_path}
|
125
|
+
File.expand_path("#{@current_path}/#{path}")
|
127
126
|
end
|
128
127
|
|
129
|
-
#
|
130
|
-
@current_path
|
128
|
+
# Remove / from the end of the current path
|
129
|
+
@current_path.sub!(/\/+\Z/, '')
|
131
130
|
end
|
132
131
|
|
133
132
|
def git_push(remote="origin", branch="master")
|
@@ -184,7 +183,7 @@ module Deplomat
|
|
184
183
|
entries_by_date.reverse! if leave[1] == :first
|
185
184
|
entries_by_date = entries_by_date[leave[0]..entries_by_date.length]
|
186
185
|
end
|
187
|
-
entries_by_date.each { |entry| remove("#{path}
|
186
|
+
entries_by_date.each { |entry| remove("#{path}/#{entry}") } if entries_by_date
|
188
187
|
end
|
189
188
|
end
|
190
189
|
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- romanitup
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.1.
|
112
|
+
rubygems_version: 3.1.2
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Deplomat
|