Sha256: bc79661988e0bc77ee9879126d6009da70c16317a325e6b7699f6278fc77f42e

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

Stored size: 428 Bytes

Contents

module RocketFuel
  module Install
    class ChefInstall
      RECEIPT_FILE = '/var/db/receipts/com.getchef.pkg.chef.bom'
      def run
        `sudo echo`
        `curl -L https://www.opscode.com/chef/install.sh | sudo bash`
      end

      def installed?
        if RocketFuel::SystemDetails.platform_family?(:mac)
          FileTest.exists?(RECEIPT_FILE)
        else
          false
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rocket_fuel-0.2.0 lib/rocket_fuel/install/chef_install.rb
rocket_fuel-0.1.0 lib/rocket_fuel/install/chef_install.rb
rocket_fuel-0.0.8 lib/rocket_fuel/install/chef_install.rb
rocket_fuel-0.0.7 lib/rocket_fuel/install/chef_install.rb
rocket_fuel-0.0.6 lib/rocket_fuel/install/chef_install.rb
rocket_fuel-0.0.5 lib/rocket_fuel/install/chef_install.rb
rocket_fuel-0.0.4 lib/rocket_fuel/install/chef_install.rb