deis-rails 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deis/helpers.rb +7 -0
- data/lib/deis/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: 862517e44407d6c71a4cd90d9b529f831569b2d2
|
4
|
+
data.tar.gz: 00558f9a92402d42fd9780aa13c37d65954b560d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 368079ba6ba4d0f4f8fa4a37f8a1e653897052d517319d23f18f5069c721c35bd6fdedc207ae59e897620cd12d029ac88cb70cc332c2647301aa7e4fe6d6f6d4
|
7
|
+
data.tar.gz: cab8a5b0c93c67a65cdebae59db02e4aa912ccdf5a743c72ecf8355a9818f54e54feb4a7d37f9b592f2deabc2a680e5a999c2cbd887c918647853ea40559f6f2
|
data/lib/deis/helpers.rb
CHANGED
@@ -71,8 +71,15 @@ module Deis
|
|
71
71
|
|
72
72
|
def deis_command(*cmds)
|
73
73
|
shell :deis, *cmds
|
74
|
+
rescue Errno::ENOENT
|
75
|
+
deis_local_command *cmds
|
76
|
+
end
|
77
|
+
|
78
|
+
def deis_local_command(*cmds)
|
79
|
+
shell './deis', *cmds
|
74
80
|
rescue Errno::ENOENT
|
75
81
|
shell 'curl -sSL http://deis.io/deis-cli/install.sh | sh -s 1.6.1'
|
82
|
+
singleton_class.alias_method :deis_command, :deis_local_command
|
76
83
|
retry
|
77
84
|
end
|
78
85
|
|
data/lib/deis/version.rb
CHANGED