go-deploy 1.0.3 → 1.0.4
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 +4 -4
- data/lib/go_deploy/console.rb +3 -3
- data/lib/go_deploy/deploy.rb +0 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 661093ee6e3cccb0193801d60997d6d9c102f0c53735c3235514a84c023a0f91
|
|
4
|
+
data.tar.gz: d665105e9c7539eface2810a796c25466f5e884302ccb94e2a4800a8b8275d6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a60b807579ad79ab8dfa1c2eca2c666eb1dc398a51cc2658dd2a15c8571ee3f9372ed70eb4e7298f3bfdf6431fafa8a74ebb76c0aab4de8890b72a6150da15d
|
|
7
|
+
data.tar.gz: 1a2d6973f396ea08a46a0c8657ed337eae3b6f65d4b96cac51fb1606129a8fd6468a49cb617c06eb34867cff551c55ed7ad6a3d4ec2498b0495fbbc32e556005
|
data/lib/go_deploy/console.rb
CHANGED
|
@@ -7,8 +7,8 @@ module GoDeploy
|
|
|
7
7
|
@config = config
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
def log(command:, is_show_remote_name: true)
|
|
11
|
-
puts "\t#{command}".yellow
|
|
10
|
+
def log(command:, is_show_remote_name: true, is_show_color: true)
|
|
11
|
+
puts is_show_color ? "\t#{command}".yellow : "\t#{command}"
|
|
12
12
|
show_remote_name if is_show_remote_name
|
|
13
13
|
end
|
|
14
14
|
|
|
@@ -37,7 +37,7 @@ module GoDeploy
|
|
|
37
37
|
|
|
38
38
|
channel.exec(command)
|
|
39
39
|
channel.on_data do |_c, cmd|
|
|
40
|
-
log(command: cmd, is_show_remote_name: false
|
|
40
|
+
log(command: cmd, is_show_remote_name: false, is_show_color: is_show_color)
|
|
41
41
|
|
|
42
42
|
channel.send_data "#{@config['password']}\n" if cmd[/\[sudo\]|Password/i]
|
|
43
43
|
end
|
data/lib/go_deploy/deploy.rb
CHANGED