Parent

Class/Module Index [+]

Quicksearch

Object

Constants

CMWG_NAMESPACE
DEFAULT_CONFIG
HOSTNAME

You could use $API_HOST environment variable to change your hostname to whatever you want (eg. if you running API behind NAT)

NEW_BLOB_FORM_ID

The URL for getting the new blob form for the HTML UI looks like the URL for getting the details of an existing blob. To make collisions less likely, we use a name for the form that will rarely be the name of an existing blob

Public Instance Methods

app() click to toggle source
# File tests/cimi/features/support/env.rb, line 47
def app
  Sinatra::Application
end
last_xml_response() click to toggle source
# File tests/cimi/features/support/env.rb, line 15
def last_xml_response
  Nokogiri::XML(last_response.body)
end
library_present?(name) click to toggle source

See if we can require name and return true if the library is there, false otherwise. Note that, as a side effect, the library will be loaded

# File bin/deltacloudd, line 28
def library_present?(name)
  begin
    require name
    true
  rescue LoadError
    false
  end
end
new_client(credentials, opts={}) click to toggle source
# File lib/deltacloud/drivers/ec2/ec2_mock_driver.rb, line 179
def new_client(credentials, opts={})
  if credentials.user != 'mockuser' and credentials.password != 'mockpassword'
    raise "AuthFailure"
  end
  RightAws::MockEc2.new
end
new_machine() click to toggle source
# File tests/cimi/features/support/env.rb, line 19
def new_machine
  @@new_machine
end
set_new_machine(machine) click to toggle source
# File tests/cimi/features/support/env.rb, line 23
def set_new_machine(machine)
  @@new_machine = machine
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.