Sha256: ede733a9c65bbb58d0260d894439e2af3d8d2344dba66bb8904d206172c3e83c

Contents?: true

Size: 540 Bytes

Versions: 7

Compression:

Stored size: 540 Bytes

Contents

require 'log4r'

require 'vagrant/util/platform'

require_relative 'pd_8'

module VagrantPlugins
  module Parallels
    module Driver
      # Driver for Parallels Desktop 9.
      class PD_9 < PD_8
        def initialize(uuid)
          super(uuid)

          @logger = Log4r::Logger.new('vagrant_parallels::driver::pd_9')
        end

        def set_power_consumption_mode(optimized)
          state = optimized ? 'on' : 'off'
          execute_prlctl('set', @uuid, '--longer-battery-life', state)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vagrant-parallels-1.6.3 lib/vagrant-parallels/driver/pd_9.rb
vagrant-parallels-1.6.2 lib/vagrant-parallels/driver/pd_9.rb
vagrant-parallels-1.6.1 lib/vagrant-parallels/driver/pd_9.rb
vagrant-parallels-1.6.0 lib/vagrant-parallels/driver/pd_9.rb
vagrant-parallels-1.5.1 lib/vagrant-parallels/driver/pd_9.rb
vagrant-parallels-1.5.0 lib/vagrant-parallels/driver/pd_9.rb
vagrant-parallels-1.4.3 lib/vagrant-parallels/driver/pd_9.rb