lib/deis/helpers.rb in deis-rails-1.0.6 vs lib/deis/helpers.rb in deis-rails-1.0.7

- old
+ new

@@ -70,10 +70,17 @@ end def deis_command(*cmds) shell :deis, *cmds rescue Errno::ENOENT + deis_local_command *cmds + end + + def deis_local_command(*cmds) + shell './deis', *cmds + rescue Errno::ENOENT shell 'curl -sSL http://deis.io/deis-cli/install.sh | sh -s 1.6.1' + singleton_class.alias_method :deis_command, :deis_local_command retry end def git_clone(url, flags = {}) shell "git clone #{url}", flags