Sha256: 364f8d31039a2ec52c3edab85a73acd256c5c7176e184e793e650494fa389b49
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
module Hanzo module Installers module Remotes def install_remotes puts '-----> Creating git remotes' Hanzo::Installers::Remotes.environments.each_pair do |env, app| Hanzo::Installers::Remotes.add_remote(app, env) end end def self.add_remote(app, env) puts " Adding #{env}" `git remote rm #{env} 2>&1 > /dev/null` `git remote add #{env} git@heroku.com:#{app}.git` end def self.environments return YAML.load_file('.heroku-remotes') if File.exists?('.heroku-remotes') puts ' Can\'t locate .heroku-remotes' puts ' For more information, please read https://github.com/mirego/hanzo' exit end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hanzo-0.1.2 | lib/hanzo/modules/installers/remotes.rb |
hanzo-0.1.0 | lib/hanzo/modules/installers/remotes.rb |