lib/hanzo/modules/installers/remotes.rb in hanzo-0.4.5 vs lib/hanzo/modules/installers/remotes.rb in hanzo-0.5
- old
+ new
@@ -14,14 +14,10 @@
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.exist?('.heroku-remotes')
-
- Hanzo.print 'Cannot locate .heroku-remotes'
- Hanzo.print 'For more information, please read https://github.com/mirego/hanzo'
- exit
+ Hanzo.config['remotes']
end
def self.installed_environments
`git remote`.split("\n")
end