Skip to content
Browse files

Tweaking logging

  • Loading branch information...
1 parent 1f65ba7 commit d25272ebb47174071cf0f4d5dc2422e6d505112e Kali Donovan committed Nov 13, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/capistrano-conditional/deploy.rb
View
9 lib/capistrano-conditional/deploy.rb
@@ -31,6 +31,7 @@ def initialize(compare_to = 'HEAD^')
end
def ensure_local_up_to_date
+ return true if ENV['ALLOW_OUTDATED']
s = @git.status
no_changes = %w(changed added deleted).all? { |attrib| s.send(attrib).empty? }
@@ -45,14 +46,14 @@ def log(text = "\n", level = Capistrano::Logger::TRACE)
end
log
- log " Conditional Deployment Report:", Capistrano::Logger::IMPORTANT
+ log "Conditional Deployment Report:", Capistrano::Logger::IMPORTANT
log
- log "\tLast deployed commit: #{@last_deployed.message}", Capistrano::Logger::INFO
+ log "\tLast deployed commit: #{@last_deployed.message}", Capistrano::Logger::DEBUG
log
- log "\tFiles Modified:", Capistrano::Logger::INFO
+ log "\tFiles Modified:", Capistrano::Logger::DEBUG
@changed.each {|f| log "\t\t- #{f}"}
log
- log "\tConditional Runlist:", Capistrano::Logger::INFO
+ log "\tConditional Runlist:", Capistrano::Logger::DEBUG
if @to_run.empty?
log "\t\t* No conditional tasks have been added"
else

0 comments on commit d25272e

Please sign in to comment.
Something went wrong with that request. Please try again.