Sha256: c42bf88b3c1ba1e74cae635db8ff442b8f399b49d115b46dba29727fe924bb77

Contents?: true

Size: 1.23 KB

Versions: 31

Compression:

Stored size: 1.23 KB

Contents

require 'veewee/provider/core/provider'

module Veewee
  module Provider
    module Parallels
      class Provider < Veewee::Provider::Core::Provider

        #include ::Veewee::Provider::Vmfusion::ProviderCommand

        def check_requirements
          unless self.shell_exec("prlctl --version").status == 0
            raise Veewee::Error,"Could not execute prlctl command. Please install Parallels or make sure prlctl is in the Path"
          end

          unless self.shell_exec("arp -an").status == 0
            raise Veewee::Error,"Could not execute arp command. That should never happen :)"
          end

          unless self.shell_exec("python --version").status == 0
            raise Veewee::Error,"Could not execute python command. Please install or make it available in your path"
          end

          check_file=File.join(File.dirname(__FILE__),'..','..','..','python','parallels_sdk_check.py')
          unless self.shell_exec("python #{check_file}").status == 0
            raise Veewee::Error,"Could not connect to the parallels local service. To make it work, install the Parallels SDK that matches your version of parallels"
          end
        end


      end #End Class
    end # End Module
  end # End Module
end # End Module

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
veewee-0.5.0.alpha4 lib/veewee/provider/parallels/provider.rb
veewee-0.5.0.alpha3 lib/veewee/provider/parallels/provider.rb
veewee-0.5.0.alpha2 lib/veewee/provider/parallels/provider.rb
veewee-0.5.0.alpha1 lib/veewee/provider/parallels/provider.rb
veewee-0.4.5.1 lib/veewee/provider/parallels/provider.rb
veewee-0.4.5 lib/veewee/provider/parallels/provider.rb
veewee-0.4.5.pre1 lib/veewee/provider/parallels/provider.rb
veewee-0.4.4 lib/veewee/provider/parallels/provider.rb
veewee-0.4.3 lib/veewee/provider/parallels/provider.rb
veewee-0.4.2 lib/veewee/provider/parallels/provider.rb
veewee-0.4.1 lib/veewee/provider/parallels/provider.rb
veewee-0.4.0 lib/veewee/provider/parallels/provider.rb
veewee-0.3.12 lib/veewee/provider/parallels/provider.rb
veewee-0.3.11 lib/veewee/provider/parallels/provider.rb
veewee-0.3.10 lib/veewee/provider/parallels/provider.rb
veewee-0.3.9 lib/veewee/provider/parallels/provider.rb
veewee-atlassian-0.3.11 lib/veewee/provider/parallels/provider.rb
veewee-0.3.7 lib/veewee/provider/parallels/provider.rb
veewee-0.3.6 lib/veewee/provider/parallels/provider.rb
veewee-0.3.5 lib/veewee/provider/parallels/provider.rb