lib/deis/helpers.rb in deis-rails-1.0.7 vs lib/deis/helpers.rb in deis-rails-1.0.8
- old
+ new
@@ -77,10 +77,10 @@
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
+ singleton_class.send :alias_method, :deis_command, :deis_local_command
retry
end
def git_clone(url, flags = {})
shell "git clone #{url}", flags