Add this line to your application's Gemfile:
gem 'fog-huaweicloud'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fog-huaweicloud
Before you can use fog-huaweicloud, you must require it in your application:
require 'fog/huaweicloud'
Since it's a bad practice to have your credentials in source code, you should load them from default fog configuration file: ~/.fog
. This file could look like this:
default:
:huaweiyun_accesskey_id: <YOUR_ACCESS_KEY_ID>,
:huaweiyun_accesskey_secret: <YOUR_SECRET_ACCESS_KEY>,
The gem is available as open source under the terms of the MIT License.