rmdd 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 471e12d33220e3ef3006912dc25dc4a02de1e2fc
4
- data.tar.gz: 5c75ba02ae4187a96c477660f2c1a9a21eaff7ae
3
+ metadata.gz: c1d4dd2d187134710fb83f08399c0c03c4a0557c
4
+ data.tar.gz: 2a0e88f202538bfc93925471b15a0b514f62da6f
5
5
  SHA512:
6
- metadata.gz: cb7addc3a9765616cc36c90094317974f3f70f8834d456f6b7a229e1fe19d14d549940855d76e4e41259c9a03529601d3612d15a32d795d651cc8092ffe63ff1
7
- data.tar.gz: ef1a328633d7edea2e213a8ce5e269ee1fabce066d649b8dcdd99d3a88950db94d4dc8ff23b067d1ccd42494c680c5cfaca3448fc4fe40b230242dd9045e8249
6
+ metadata.gz: 144a7016263864b2c3f26c4ec2447c35cd3637fdd67557fc096718b4fad361c7f9644a6c6d3d7ef8e4026dcfb1fe6c0881b7648e987e50116428309b557dbedc
7
+ data.tar.gz: 02a339230507f359dfd833a28314eded6c568a03bab3a6a44115a652b5a5b505c2aebca040a1ddce82ca7133b1845a4b9e9c7a39492ed03c066a1ed644bef3a4
@@ -6,13 +6,13 @@ module Rmd
6
6
  class DeployService
7
7
  def self.deploy(server)
8
8
  validate(server)
9
- system("curl -s #{url(server)}/deploy/#{token(server)}")
9
+ system_cmd("curl -s #{url(server)}/deploy/#{token(server)}")
10
10
  end
11
11
 
12
12
  def self.restart(server)
13
13
  validate(server)
14
14
  command = %{echo "cd #{NAME} && sh deploy.sh" | ssh #{master(server)} -p 2200}
15
- system(command)
15
+ system_cmd(command)
16
16
  end
17
17
 
18
18
  private
@@ -36,5 +36,10 @@ module Rmd
36
36
  def self.master(server)
37
37
  Server.get(server).master
38
38
  end
39
+
40
+ def self.system_cmd(cmd)
41
+ $stdout.puts(cmd)
42
+ system(cmd)
43
+ end
39
44
  end
40
45
  end
data/lib/rmd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rmd
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duc Le