Sha256: d62a7a28ade754c466046d5dc2c57f5840c4cb9b078d17ae36bb7d478a4debcd

Contents?: true

Size: 1009 Bytes

Versions: 3

Compression:

Stored size: 1009 Bytes

Contents

require 'rocket_fuel/install/download'
require 'rocket_fuel/install/chef_install'
require 'rocket_fuel/install/recipe_run'

module RocketFuel
  module Install
    class Run
      include Thor::Base

      def initialize
        @download = RocketFuel::Install::Download.new
      end

      def run
        say('Downloading rocket fuel recipes...')
        @download.retrieve
        say('Done.')
        say('Extracting rocket fuel recipes...')
        @download.extract
        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')
        run = RocketFuel::Install::RecipeRun.new
        run.run
        say('Done')
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rocket_fuel-0.0.6 lib/rocket_fuel/install/run.rb
rocket_fuel-0.0.5 lib/rocket_fuel/install/run.rb
rocket_fuel-0.0.4 lib/rocket_fuel/install/run.rb