Sha256: 766a6b73121623c435b44766ebd6ec57d859605eec58b162779ffcafd344f1f3
Contents?: true
Size: 863 Bytes
Versions: 1
Compression:
Stored size: 863 Bytes
Contents
require 'fileutils' module Bourdain module Checks class ChefCheck < Check usage :check, <<-END Check the underlying Kitchen chef END def initialize cookbook_config super [] return unless require_chef! check_chef_repo! end private def check_chef_repo! # Check if we have an up-to-date copy of the Kitchen if youre_dirty? '.' log.warn "Your Kitchen is dirty." elsif youre_ahead? '.' log.warn "Your Kitchen is ahead of the remote." elsif youre_behind? '.' log.error "Looks like your Kitchen is behind the remote." error! else log.info "Your Kitchen looks up-to-date." end log.info 'Updating your Bundle...' system 'bundle update' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bourdain-1.5.1 | lib/bourdain/resources/checks/chef.rb |