Class: VagrantPlugins::Ventriloquist::Platforms::PhantomJS

Inherits:
VagrantPlugins::Ventriloquist::Platform show all
Defined in:
lib/ventriloquist/platforms/phantomjs.rb

Instance Attribute Summary

Attributes inherited from VagrantPlugins::Ventriloquist::Platform

#config, #name

Instance Method Summary collapse

Methods inherited from VagrantPlugins::Ventriloquist::Platform

#initialize

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