lib/rocket_fuel/install/run.rb in rocket_fuel-0.0.3 vs lib/rocket_fuel/install/run.rb in rocket_fuel-0.0.4

- old
+ new

@@ -16,14 +16,21 @@ @download.retrieve say('Done.') say('Extracting rocket fuel recipes...') @download.extract say('Done.') - say('Installing chef omnibus. You may be prompted for your sudo password..') - RocketFuel::Install::ChefInstall.new.run - say('Done.') + say('Checking to see if Chef is installed...') + chef_install = RocketFuel::Install::ChefInstall.new + if chef_install.installed? + say('Done') + else + 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') - RocketFuel::Install::RecipeRun.new.run + run = RocketFuel::Install::RecipeRun.new + run.run say('Done') end end end end