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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfaa731deaadf740d8186902e81a287e1ab77d4e74611c5f6dcf674441792852
4
- data.tar.gz: 7b409490390daa0de4597531f797866c49a52da53f7908c1a9171adec780e204
3
+ metadata.gz: 661093ee6e3cccb0193801d60997d6d9c102f0c53735c3235514a84c023a0f91
4
+ data.tar.gz: d665105e9c7539eface2810a796c25466f5e884302ccb94e2a4800a8b8275d6f
5
5
  SHA512:
6
- metadata.gz: 3b01c981648d80ffb5ea1ffcd0fc5667eeaeb314b1bb4b0c6a962cc619300f6ad84b93bb81150d9ad6bfc49e10d5f5bd0762da68f54081601e079fdb6c8c8a27
7
- data.tar.gz: c49d68bf34873df8cab129eb44bf1a6b9b0f84c373fe0647ae49592caad23fd358aa0bf64c590e686f9949302619f210736e6821b93cfe75dbeca4a792f8f021
6
+ metadata.gz: 6a60b807579ad79ab8dfa1c2eca2c666eb1dc398a51cc2658dd2a15c8571ee3f9372ed70eb4e7298f3bfdf6431fafa8a74ebb76c0aab4de8890b72a6150da15d
7
+ data.tar.gz: 1a2d6973f396ea08a46a0c8657ed337eae3b6f65d4b96cac51fb1606129a8fd6468a49cb617c06eb34867cff551c55ed7ad6a3d4ec2498b0495fbbc32e556005
@@ -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) if is_show_color
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
@@ -148,5 +148,3 @@ module GoDeploy
148
148
  end
149
149
  end
150
150
  end
151
-
152
- GoDeploy::Deploy.new.run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: go-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saharak Manoo