Sha256: ccc8502393595a5e63f9e53b516c5b40e6ea31f552be56a1a5c28383a929f493

Contents?: true

Size: 777 Bytes

Versions: 1

Compression:

Stored size: 777 Bytes

Contents

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.2 lib/larrow/qingcloud.rb