Sha256: 2e40acd925b01035fbd4c55a401959c70668892b92a6cebc9316469b510d481f
Contents?: true
Size: 788 Bytes
Versions: 3
Compression:
Stored size: 788 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 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bourdain-1.5.0 | lib/bourdain/resources/checks/chef.rb |
bourdain-1.4.1 | lib/bourdain/resources/checks/chef.rb |
bourdain-1.4.0 | lib/bourdain/resources/checks/chef.rb |