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 +4 -4
- data/lib/rmd/deploy_service.rb +7 -2
- data/lib/rmd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1d4dd2d187134710fb83f08399c0c03c4a0557c
|
4
|
+
data.tar.gz: 2a0e88f202538bfc93925471b15a0b514f62da6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 144a7016263864b2c3f26c4ec2447c35cd3637fdd67557fc096718b4fad361c7f9644a6c6d3d7ef8e4026dcfb1fe6c0881b7648e987e50116428309b557dbedc
|
7
|
+
data.tar.gz: 02a339230507f359dfd833a28314eded6c568a03bab3a6a44115a652b5a5b505c2aebca040a1ddce82ca7133b1845a4b9e9c7a39492ed03c066a1ed644bef3a4
|
data/lib/rmd/deploy_service.rb
CHANGED
@@ -6,13 +6,13 @@ module Rmd
|
|
6
6
|
class DeployService
|
7
7
|
def self.deploy(server)
|
8
8
|
validate(server)
|
9
|
-
|
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
|
-
|
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