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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee5ba6118c2b848336e718556aae4610a6179ebe
4
- data.tar.gz: 9a110b8f36e4c22190ee35bc03d525c5acc364e0
3
+ metadata.gz: 862517e44407d6c71a4cd90d9b529f831569b2d2
4
+ data.tar.gz: 00558f9a92402d42fd9780aa13c37d65954b560d
5
5
  SHA512:
6
- metadata.gz: 51133936980adc5e76be5c629999bd43b093f696dc666629f727c5c4e325f7847d5383cd61d047518614773df7ae631c13247cce821caf92d0007e2ced860b0f
7
- data.tar.gz: dd42683b7536591ca47df17b2b99190932eb6105c7fc5c209c4751b74baebbffa6f2f78479d1ce9458579f6339e449f0ff268b4c828abed2eafb35f94e4de148
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
@@ -1,3 +1,3 @@
1
1
  module Deis
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deis-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Waldrip