deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik ...@mifo.sk>
Subject Re: deltacloud - load error
Date Thu, 02 Feb 2012 18:15:59 GMT
Hi,

You can try to require 'ruby gems' first:

require 'rubygems'
require 'deltacloud'
api_url = 'http://localhost:3001/api'
api_name = 'mockuser'
api_password = 'mockpassword'
client = DeltaCloud.new( api_name, api_password, api_url )


-- 
Michal Fojtik
Senior Software Engineer, Red Hat Inc.
mi@mifo.sk


On Thursday, February 2, 2012 at 11:03 AM, rajaguganeswaran karunaivel wrote:

> hai,
> 
> I tried this code to access the deltacloud mock server. but it couldn't
> load deltacloud. Deltacloud is installed.
> 
> require 'deltacloud'
> api_url = 'http://localhost:3001/api'
> api_name = 'mockuser'
> api_password = 'mockpassword'
> client = DeltaCloud.new( api_name, api_password, api_url )
> 
> 
> $ ruby test.rb
> test.rb:1:in `require': no such file to load -- deltacloud (LoadError)
> from test.rb:1
> 
> why it does not load deltacloud or whether I have run somewhere else? 



Mime
View raw message