Module: Larrow::Qingcloud
- Defined in:
- lib/larrow/qingcloud.rb,
lib/larrow/qingcloud/eip.rb,
lib/larrow/qingcloud/base.rb,
lib/larrow/qingcloud/image.rb,
lib/larrow/qingcloud/errors.rb,
lib/larrow/qingcloud/logger.rb,
lib/larrow/qingcloud/version.rb,
lib/larrow/qingcloud/instance.rb,
lib/larrow/qingcloud/key_pair.rb,
lib/larrow/qingcloud/snapshot.rb,
lib/larrow/qingcloud/connection.rb
Overview
Qingcloud ruby sdk
Defined Under Namespace
Modules: Logger Classes: Base, Connection, Eip, Image, Instance, KeyPair, Snapshot
Constant Summary collapse
- ServiceError =
Class.new(StandardError)
- VERSION =
'0.0.1'
Class Attribute Summary collapse
-
.connection ⇒ Object
readonly
Returns the value of attribute connection.
Class Method Summary collapse
- .establish_connection(access_key, secret_key, zone_id) ⇒ Object
- .logger=(logger) ⇒ Object
- .remove_connection ⇒ Object
Class Attribute Details
.connection ⇒ Object (readonly)
Returns the value of attribute connection.
18 19 20 |
# File 'lib/larrow/qingcloud.rb', line 18 def connection @connection end |
Class Method Details
.establish_connection(access_key, secret_key, zone_id) ⇒ Object
9 10 11 |
# File 'lib/larrow/qingcloud.rb', line 9 def self.establish_connection(access_key, secret_key, zone_id) @connection ||= Connection.new access_key, secret_key, zone_id end |
.logger=(logger) ⇒ Object
4 5 6 |
# File 'lib/larrow/qingcloud/logger.rb', line 4 def self.logger= logger @@logger = logger end |
.remove_connection ⇒ Object
13 14 15 |
# File 'lib/larrow/qingcloud.rb', line 13 def self.remove_connection @connection = nil end |