Last Updated: February 25, 2016
·
1.257K
· newtriks

Setup Boxen to use PhantomJS

To use phantomjs in Boxen you need the phantomjs module. Boxen uses phantomenv to manage phantomjs versions and installation. Here's how to set it up in Boxen:

Puppetfile

github "phantomjs", "2.0.2"

[username].pp (or where ever in the manifest scheme of things)

include phantomjs
# PhantomJS
class { 'phantomjs::global':
  version => '1.9.0'
}

Result:

Simons-MacBook-Pro:knowledgevision-html5-player newtriks$ phantomjs
phantomjs> 
Simons-MacBook-Pro:knowledgevision-html5-player newtriks$ phantomenv version
1.9.0