module Snapit
Constants
- VERSION
Public Class Methods
run!(path, storage)
click to toggle source
# File lib/snapit.rb, line 7 def self.run!(path, storage) res = [] script = Snapit::Script.new(path, storage) Snapit::Engine.run(script.storage) do |driver| script.urls.each do |obj| obj.keys.each do |key| name = key url = obj[key] res << {path: driver.capture!(url, name)} end end end res end