Skip to content

Commit

Permalink
automatically open gallery upon completion
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBAshton committed May 22, 2016
1 parent cd9a91c commit fc23aaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/wraith/gallery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ def check_failed_shots
end

def prompt_user_to_open_gallery(dest)
gallery_url = "file://#{Dir.pwd}/#{dest}"
logger.info "\nView the gallery in your browser:"
logger.info "\t file://" + Dir.pwd + "/" + dest
logger.info "\t #{gallery_url}"
`open #{gallery_url}`
end

class ErbBinding < OpenStruct
Expand Down

0 comments on commit fc23aaf

Please sign in to comment.