Sha256: eb29fb1f4efb3a22c30211eedccc9ea9b3d0b8392a70683d5bb45e08e81f18fd
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
module Hanzo module Installers module Remotes def install_remotes Hanzo.title '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) Hanzo.print "Adding #{env}" Hanzo.run "git remote rm #{env} 2>&1 > /dev/null" Hanzo.run "git remote add #{env} https://git.heroku.com/#{app}.git" end def self.environments Hanzo.config['remotes'] end def self.installed_environments `git remote`.split("\n") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanzo-1.1.0 | lib/hanzo/modules/installers/remotes.rb |