Sha256: 8cdec3ba0698f80f809b6c3069b27bb48210d6f0064c0f1859b76168900bb81d
Contents?: true
Size: 764 Bytes
Versions: 10
Compression:
Stored size: 764 Bytes
Contents
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
10 entries across 10 versions & 1 rubygems