Class: Acquia::Cloud
- Inherits:
-
Object
show all
- Defined in:
- lib/acquia/cloud.rb,
lib/acquia/cloud/api.rb,
lib/acquia/cloud/site.rb,
lib/acquia/cloud/task.rb,
lib/acquia/cloud/domain.rb,
lib/acquia/cloud/entity.rb,
lib/acquia/cloud/errors.rb,
lib/acquia/cloud/server.rb,
lib/acquia/cloud/version.rb,
lib/acquia/cloud/database.rb,
lib/acquia/cloud/credentials.rb,
lib/acquia/cloud/environment.rb,
lib/acquia/cloud/logs/source.rb,
lib/acquia/cloud/logs/streamer.rb,
lib/acquia/cloud/database_backup.rb,
lib/acquia/cloud/operations/delete.rb,
lib/acquia/cloud/database_environment.rb
Overview
Defined Under Namespace
Modules: Logs, Operations
Classes: Api, Credentials, Database, DatabaseBackup, DatabaseEnvironment, Domain, Entity, Environment, Server, Site, StreamerConnectionError, StreamerError, StreamerRemoteError, StreamerUnrecognisedCommandError, Task
Constant Summary
collapse
- VERSION =
'0.5.8'
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(args = {}) ⇒ Cloud
9
10
11
|
# File 'lib/acquia/cloud.rb', line 9
def initialize(args = {})
@api = Api.new args
end
|
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
7
8
9
|
# File 'lib/acquia/cloud.rb', line 7
def api
@api
end
|
Instance Method Details
#drushrc ⇒ Object
24
25
26
|
# File 'lib/acquia/cloud.rb', line 24
def drushrc
@api.get '/me/drushrc'
end
|
20
21
22
|
# File 'lib/acquia/cloud.rb', line 20
def site(name)
Site.new(self, name).refresh
end
|
#sites ⇒ Object
13
14
15
16
17
|
# File 'lib/acquia/cloud.rb', line 13
def sites
@sites ||= @api.get('/sites').map do |site|
Site.new(self, site)
end
end
|