class RocketFuel::Install::RecipeRun
Public Class Methods
new(options = {})
click to toggle source
# File lib/rocket_fuel/install/recipe_run.rb, line 4 def initialize(options = {}) @options = options end
Public Instance Methods
cookbook_name()
click to toggle source
# File lib/rocket_fuel/install/recipe_run.rb, line 15 def cookbook_name if @options[:vagrant] || !RocketFuel::SystemDetails.platform_family?(:mac) 'linux' else 'osx' end end
recipe_name()
click to toggle source
# File lib/rocket_fuel/install/recipe_run.rb, line 23 def recipe_name if @options[:vagrant] 'vagrant' else 'default' end end
run()
click to toggle source
# File lib/rocket_fuel/install/recipe_run.rb, line 8 def run chdir_cmd = "cd #{RocketFuel::Install::RECIPE_PATH}" system("#{chdir_cmd} && sudo chef-solo " + "-c cookbooks/fueled-#{cookbook_name}-station/config.rb " + "-j cookbooks/fueled-#{cookbook_name}-station/roles/#{recipe_name}.json") end