Sha256: 09336113149f3676edb389be8fc799dead798dfa9e57dd2ca4414bb6c83e1abd
Contents?: true
Size: 468 Bytes
Versions: 8
Compression:
Stored size: 468 Bytes
Contents
module OVIRT::RSpec::Endpoint def endpoint file = File.expand_path("../endpoint.yml", File.dirname(__FILE__)) @endpoint ||= YAML.load(File.read(file)) user = @endpoint['user'] password= @endpoint['password'] hostname = @endpoint['hostname'] port = @endpoint['port'] url = "http://#{hostname}:#{port}/api" return user, password, url end def support_user_level_api @endpoint['version'] && @endpoint['version'] > 3.1 end end
Version data entries
8 entries across 8 versions & 1 rubygems