Sha256: 4d0b3facb2d541060b8749f1ea860d9dd42788bacc9b025603a328046bc5a0a1
Contents?: true
Size: 950 Bytes
Versions: 2
Compression:
Stored size: 950 Bytes
Contents
BREW_INSTALL_URL = 'https://raw.githubusercontent.com/Homebrew/install/master/install' # Install brew execute "Install brew" do command "ruby -e \"$(curl -fsSL #{BREW_INSTALL_URL})\"" not_if "test $(which brew)" end # Update brew enable_update = node['brew']['enable_update'] ? node['brew']['enable_update'] : false if enable_update execute 'Update brew' do command 'brew update' end else Logger.info('Execution skipped Update brew because of not true enable_update') end # Upgrade brew enable_upgrade = node['brew']['enable_upgrade'] ? node['brew']['enable_upgrade'] : false if enable_upgrade execute 'Upgrade brew' do command 'brew upgrade' end else Logger.info('Execution skipped Upgrade brew because of not true enable_upgrade') end # Add Repository node['brew']['add_repositories'].each do |repo| execute "Add Repository: #{repo}" do command "brew tap #{repo}" not_if "brew tap | grep -q #{repo}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
itamae-plugin-recipe-homebrew-0.0.2 | lib/itamae/plugin/recipe/homebrew/common.rb |
itamae-plugin-recipe-homebrew-0.0.1 | lib/itamae/plugin/recipe/homebrew/common.rb |