Class: VagrantPlugins::Ventriloquist::Platforms::PhantomJS
- Inherits:
-
VagrantPlugins::Ventriloquist::Platform
- Object
- VagrantPlugins::Ventriloquist::Platform
- VagrantPlugins::Ventriloquist::Platforms::PhantomJS
- Defined in:
- lib/ventriloquist/platforms/phantomjs.rb
Instance Attribute Summary
Attributes inherited from VagrantPlugins::Ventriloquist::Platform
Instance Method Summary collapse
Methods inherited from VagrantPlugins::Ventriloquist::Platform
Constructor Details
This class inherits a constructor from VagrantPlugins::Ventriloquist::Platform
Instance Method Details
#provision(machine) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/ventriloquist/platforms/phantomjs.rb', line 5 def provision(machine) if @config[:versions].empty? machine.env.ui.warn('No phantomjs version specified, skipping installation') return elsif @config[:versions].size > 1 machine.env.ui.warn('Multiple versions specified for phantomjs, installing the first one configured') end machine.guest.capability(:phantomjs_install, @config[:versions].first) end |