Permalink
Browse files

added more info to logging

  • Loading branch information...
1 parent 0deaabe commit aa1a0799a92966f17ce7ddb050ef7071ca71de12 @cyu committed Apr 28, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 pushr.rb
View
@@ -104,7 +104,7 @@ def reload!
end
def uptodate?
- log.info('Pushr') { "Fetching new revisions from remote..." }
+ log.info('Pushr') { "Fetching new revisions from remote for #{@path}..." }
info = `cd #{@path}/shared/cached-copy; #{@git_uptodate_command}`
log.fatal(@git_uptodate_command) { "Error while checking if app up-to-date: #{info}" } and return false unless $?.success?
return info.strip == '' # Blank output => No updates from git remote
@@ -134,7 +134,7 @@ def initialize(config_file='config.yml')
def deploy!(force=false)
if repository.uptodate? # Do not deploy if up-to-date (eg. push was to other branch) ...
- log.info('Pushr') { "No updates for application found" } and return {:@success => false, :output => 'Application is uptodate'}
+ log.info('Pushr') { "No updates for #{application} found" } and return {:@success => false, :output => 'Application is uptodate'}
end unless force == 'true' # ... unless forced from web GUI
cap_command = config['cap_command'] || 'deploy:migrations'
log.info(application) { "Deployment #{"(force) " if force == 'true' }starting..." }

0 comments on commit aa1a079

Please sign in to comment.