lib/hanzo/modules/installers/remotes.rb in hanzo-0.4.2 vs lib/hanzo/modules/installers/remotes.rb in hanzo-0.4.3

- old
+ new

@@ -14,14 +14,18 @@ Hanzo.run "git remote rm #{env} 2>&1 > /dev/null" Hanzo.run "git remote add #{env} git@heroku.com:#{app}.git" end def self.environments - return YAML.load_file('.heroku-remotes') if File.exists?('.heroku-remotes') + return YAML.load_file('.heroku-remotes') if File.exist?('.heroku-remotes') Hanzo.print 'Cannot locate .heroku-remotes' Hanzo.print 'For more information, please read https://github.com/mirego/hanzo' exit + end + + def self.installed_environments + `git remote`.split("\n") end end end end