Skip to content

Commit

Permalink
added more info to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Apr 28, 2009
1 parent 0deaabe commit aa1a079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pushr.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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..." }
Expand Down

0 comments on commit aa1a079

Please sign in to comment.