Sha256: 7190bdb0b6f31a62b5a7fa389baed63bf66e49e53835dfa49c1ca587d20a6fa2

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

module OVIRT::RSpec::Endpoint

  def endpoint
    file = File.expand_path("../endpoint.yml", File.dirname(__FILE__))
    @endpoint ||= YAML.load(File.read(file))
    return  @endpoint['user'], @endpoint['password'], @endpoint['url'] , @endpoint['datacenter']
  end

  def support_user_level_api
    @endpoint['version'] && @endpoint['version'] > 3.1
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbovirt-0.0.24 spec/lib/endpoint.rb