Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fog compute error for azure #28

Open
shruthirajk opened this issue Jun 10, 2016 · 1 comment
Open

Fog compute error for azure #28

shruthirajk opened this issue Jun 10, 2016 · 1 comment

Comments

@shruthirajk
Copy link

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
Copy link
Contributor

Use

require 'fog/azure'

to load internal lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants