lib/rocket_fuel/install/run.rb in rocket_fuel-0.0.8 vs lib/rocket_fuel/install/run.rb in rocket_fuel-0.1.0
- old
+ new
@@ -5,12 +5,13 @@
module RocketFuel
module Install
class Run
include Thor::Base
- def initialize
+ def initialize(options = {})
@download = RocketFuel::Install::Download.new
+ @options = options
end
def run
say('Downloading rocket fuel recipes...')
@download.retrieve
@@ -26,12 +27,12 @@
say('Installing chef omnibus. You may be prompted for your sudo password..')
chef_install.run
say('Done.')
end
say('Running rocket fuel recipes...this may take some time')
- run = RocketFuel::Install::RecipeRun.new
+ run = RocketFuel::Install::RecipeRun.new(options)
say('')
-
+
if run.run
say("Congratuations! You're now running with RocketFuel!", :green)
else
say('Something went wrong.', :red)
end