lib/hanzo/modules/installers/labs.rb in hanzo-0.1.2 vs lib/hanzo/modules/installers/labs.rb in hanzo-0.2
- old
+ new
@@ -1,22 +1,22 @@
module Hanzo
module Installers
module Labs
def install_labs
- puts '-----> Activating Heroku Labs'
+ Hanzo.title 'Activating Heroku Labs'
Hanzo::Heroku.available_labs.each do |name, description|
- if agree(" Add #{name}? ")
+ if Hanzo.agree("Add #{name}?")
Hanzo::Installers::Remotes.environments.each_pair do |env, app|
Hanzo::Installers::Labs.enable(env, lab)
end
end
end
end
def self.enable(env, lab)
- `bundle exec heroku labs:enable #{lab} --remote #{env}`
- puts " - Enabled for #{env}"
+ Hanzo.run "heroku labs:enable #{lab} --remote #{env}"
+ Hanzo.print "- Enabled for #{env}"
end
end
end
end