Skip to content

Commit

Permalink
only report on copying screenshots when you really are doing that
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Oct 2, 2011
1 parent ea9c57f commit ac88935
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ghostbuster.rb
Expand Up @@ -37,8 +37,10 @@ def run
_, status = Process.waitpid2 fork {
exec("#{@config.phantom_bin} #{@ghost_lib} #{@config.screenshots?} #{@config.screenshot_x} #{@config.screenshot_y} #{@temporary_screenshot_dir} #{Dir[@config.pattern].to_a.join(' ')}")
}
spinner "Copying screenshots" do
compress_and_copy_screenshots if status.success? && @config.screenshots?
if status.success? && @config.screenshots?
spinner "Copying screenshots" do
compress_and_copy_screenshots
end
end
ensure
spinner "Stopping server" do
Expand Down

0 comments on commit ac88935

Please sign in to comment.