fog / fog-azure

MIT License
19 stars 18 forks source link

Fog compute error for azure #28

Open shruthirajk opened 8 years ago

shruthirajk commented 8 years ago

I am a beginner in ruby.I have a sample code for azure connect in ruby. require 'fog' require 'pp' require 'azure' require 'fog-azure'

module Fog module Compute

class Azure < Fog::Compute.new( :provider => 'Azure', :azure_sub_id => 'sub_id ', :azure_pem => '/home/test/Azureuser.pem', :publish_method => 'AzureServiceManagementAPI', :azure_access_keys => 'access_key',

) end end end

I get the below error:

/usr/local/lib/ruby/1.9.1/yaml.rb:84:in <top (required)>': It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby. /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire': cannot load such file -- fog-azure (LoadError) from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require' from azure_test.rb:6:in

' If anyone could help me in resolving this issue.

aheumaier commented 7 years ago

Use

require 'fog/azure'

to load internal lib