Sha256: 1432b7aa095309eb65011c820af9369eb25ab22f5671e6e35e66d2ba9d3fb3c4

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

require 'active_support/deprecation'
require 'active_support/core_ext/string'
require 'active_support/core_ext/hash'
require 'promising'

module Larrow
  # Qingcloud ruby sdk
  module Qingcloud
    def self.establish_connection(access_key, secret_key, zone_id)
      @connection ||= Connection.new access_key, secret_key, zone_id
    end

    def self.remove_connection
      @connection = nil
    end

    class << self
      attr_reader :connection
    end
    autoload :Instance, 'larrow/qingcloud/instance'
    autoload :Eip,      'larrow/qingcloud/eip'
    autoload :Image,    'larrow/qingcloud/image'
    autoload :Snapshot, 'larrow/qingcloud/snapshot'
    autoload :KeyPair, 'larrow/qingcloud/key_pair'
  end
end

require 'larrow/qingcloud/version'
require 'larrow/qingcloud/logger'
require 'larrow/qingcloud/errors'
require 'larrow/qingcloud/connection'
require 'larrow/qingcloud/base'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
larrow-qingcloud-0.0.1 lib/larrow/qingcloud.rb