railsworks 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railsworks/tasks/shell.rake +4 -4
- data/lib/railsworks/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: 72a87066d53b6c1b9df184059ed60e8ed6ad3a1c
|
4
|
+
data.tar.gz: 348b30feee82b8cf24c910725ec9d8577014731f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 636d2d36458406b60b463531f4106a77e57e33b23d9297d604905cdcd0f36bd2386076293a0baf7d5ea1b956a755189be48b328b8419e58c5315983f0fd5183b
|
7
|
+
data.tar.gz: 00f86394c40122c4f164596581d5d19b72287a2e7b84ba4c25e9ef93148ab64e294fee9d19f1752eb55ce3759e905397676269f7edd727db7f96292301c0d804
|
@@ -9,7 +9,7 @@ namespace :shell do
|
|
9
9
|
regions = YAML.load_file('config/opsworks.yml')['staging']
|
10
10
|
ip = get_ip(regions)
|
11
11
|
path = '/srv/www/' + get_name(regions) + '/current'
|
12
|
-
|
12
|
+
run_shell(ip, path)
|
13
13
|
end
|
14
14
|
|
15
15
|
desc "Connecting to production console"
|
@@ -17,7 +17,7 @@ namespace :shell do
|
|
17
17
|
regions = YAML.load_file('config/opsworks.yml')['production']
|
18
18
|
ip = get_ip(regions)
|
19
19
|
path = '/srv/www/' + get_name(regions) + '/current'
|
20
|
-
|
20
|
+
run_shell(ip, path)
|
21
21
|
end
|
22
22
|
|
23
23
|
def get_ip(regions)
|
@@ -41,8 +41,8 @@ namespace :shell do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
def
|
44
|
+
def run_shell(server, path)
|
45
45
|
server = ENV['AWS_USERNAME'] + "@" + server if ENV['AWS_USERNAME']
|
46
|
-
exec %Q(ssh #{server}
|
46
|
+
exec %Q(ssh #{server}) if server && path
|
47
47
|
end
|
48
48
|
end
|
data/lib/railsworks/version.rb
CHANGED