Method: CachedDeploy#check_current_revision_and_noop_if_same

Defined in:
lib/chef-deploy/cached_deploy.rb

#check_current_revision_and_noop_if_same(newrev) ⇒ Object



44
45
46
47
48
# File 'lib/chef-deploy/cached_deploy.rb', line 44

def check_current_revision_and_noop_if_same(newrev)
  IO.read("#{latest_release}/REVISION").chomp == newrev
rescue
  false
end