BasicObject
You could use $API_HOST environment variable to change your hostname to whatever you want (eg. if you running API behind NAT)
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
# File tests/cimi/features/support/env.rb, line 47 def app Sinatra::Application end
# File tests/cimi/features/support/env.rb, line 15 def last_xml_response Nokogiri::XML(last_response.body) end
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
# 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
Generated with the Darkfish Rdoc Generator 2.