Sha256: 71ccc925940ed1b33f394035234b0b990a021404d6a195cd80d8604fdb814639

Contents?: true

Size: 460 Bytes

Versions: 4

Compression:

Stored size: 460 Bytes

Contents

module RocketFuel
  module Install
    class RecipeRun
      def run
        chdir_cmd = "cd #{RocketFuel::Install::RECIPE_PATH}"
        system("#{chdir_cmd} && sudo chef-solo " +
          "-c cookbooks/fueled-#{recipe_name}-station/config.rb " +
          "-j cookbooks/fueled-#{recipe_name}-station/roles/default.json")
      end

      def recipe_name
        RocketFuel::SystemDetails.platform_family?(:mac) ? 'osx' : 'linux'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rocket_fuel-0.0.8 lib/rocket_fuel/install/recipe_run.rb
rocket_fuel-0.0.7 lib/rocket_fuel/install/recipe_run.rb
rocket_fuel-0.0.6 lib/rocket_fuel/install/recipe_run.rb
rocket_fuel-0.0.5 lib/rocket_fuel/install/recipe_run.rb