Sha256: 0a3e650016499b991825b6e7bca448a7bd5084d4f5275c6fe835808550ed8e7a

Contents?: true

Size: 611 Bytes

Versions: 8

Compression:

Stored size: 611 Bytes

Contents

require 'faraday'
require 'json'

module Acquia
  # @see https://cloudapi.acquia.com/
  class Cloud
    attr_reader :api

    def initialize(args = {})
      @api = Api.new args
    end

    def sites
      @sites ||= @api.get('/sites').map do |site|
        Site.new(self, site)
      end
    end

    # @return [Acquia::Cloud::Site]
    def site(name)
      Site.new(self, name).refresh
    end

    def drushrc
      @api.get '/me/drushrc'
    end
  end
end

%w{
  version
  errors
  api
  database
  environment
  server
  site
  task
  logs/source
  logs/streamer
}.each {|p| require "acquia/cloud/#{p}" }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
acquia-cloud-0.3.1 lib/acquia/cloud.rb
acquia-cloud-0.3.0 lib/acquia/cloud.rb
acquia-cloud-0.2.1 lib/acquia/cloud.rb
acquia-cloud-0.2.0 lib/acquia/cloud.rb
acquia-cloud-0.1.3 lib/acquia/cloud.rb
acquia-cloud-0.1.2 lib/acquia/cloud.rb
acquia-cloud-0.1.1 lib/acquia/cloud.rb
acquia-cloud-0.1.0 lib/acquia/cloud.rb