Class: ScreenCapture
- Inherits:
-
Object
- Object
- ScreenCapture
- Defined in:
- lib/screen_capture.rb
Class Method Summary collapse
Class Method Details
.capture(url, file, width = 1024, height = 800) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/screen_capture.rb', line 2 def self.capture(url, file, width=1024, height=800) command = "phantomjs #{File.(File.dirname(__FILE__)+'/..')}/src/screen_capture.js #{url} #{file} #{width} #{height}" puts "Executing: #{command}" value = `#{command}` puts "Command: #{value}" end |