Sha256: 67997dee6e362e746c2fce3ed327c843e2381fcf67a48331629bd384a94965f3
Contents?: true
Size: 267 Bytes
Versions: 2
Compression:
Stored size: 267 Bytes
Contents
module Polterheist module Screenshot def self.included(base) require 'launchy' end def ss path = '/tmp/screenshot.png' FileUtils.rm(path) if File.exists?(path) page.save_screenshot path Launchy.open path end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
polterheist-0.0.2 | lib/polterheist/screenshot.rb |
polterheist-0.0.1 | lib/polterheist/screenshot.rb |