Module: Speedly::Phantomjs

Extended by:
Phantomjs
Included in:
Speedly, CLI, Phantomjs
Defined in:
lib/speedly/phantomjs.rb

Instance Method Summary collapse

Instance Method Details

#run(script, *args) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/speedly/phantomjs.rb', line 9

def run(script, *args)
  if installed?
    `phantomjs #{script} #{args.join(' ')}`
  else
    raise PhantomjsLoadError
  end
end