acquia_toolbelt 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/{readme.md → README.md} +23 -20
- data/bin/acquia +19 -1
- data/lib/acquia_toolbelt/auth.rb +5 -0
- data/lib/acquia_toolbelt/version.rb +1 -1
- data/tests/example_test.rb +5 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGEwYzhlYTJkZTM3NzIyODlmM2U4ZDFiYzdjODAxMjk3YWQ4MzQzZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTY5ZWU0MTkwYTExYjNjYzg5ZjU3NDBlNzkyNjhhZmRhOGMzY2RhZg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTI1NmJlOTc2NGVlNmUzMmYwMmY1MjM1OWUyY2E2MGNhMmNjOWFiYTEwNWRj
|
10
|
+
NDQ2ZjkyNTVlZjRlMmVmOGRhMzE5ZmMxNGYxM2VmNzBkYjEyMDI0NTgyMjY5
|
11
|
+
NWNhYjBhYTRiZDc1NzcyNWFhYjU1ZmUwYzJiYTFmZGMwNTU5ODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzFmYTU0NmM3MzQwNTAzMjQ5YTAzOWU3NGU0YWFmMDVhZjExMDZhMTdhODhi
|
14
|
+
OGUwMjQ0YjNkZDNlNDhiZDI1YTE3MGRkNGFlMmYyMTBmZjg4MmEwMDBhODkx
|
15
|
+
NTQ4YjUxMzcxMDBhOGIzMjk4NDEzNzQzNDkwNjcyNWM3OTE4MDI=
|
data/{readme.md → README.md}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Acquia Toolbelt
|
1
|
+
# Acquia Toolbelt [![Gem Version](https://badge.fury.io/rb/acquia_toolbelt.png)](http://badge.fury.io/rb/acquia_toolbelt)
|
2
2
|
|
3
3
|
The Acquia Toolbelt is a CLI tool for using the Acquia Cloud API. Some of the
|
4
4
|
features include getting information around your servers, subscription,
|
@@ -22,25 +22,28 @@ You can see all available commands by running `acquia` without any commands or p
|
|
22
22
|
$ acquia
|
23
23
|
|
24
24
|
Commands:
|
25
|
-
acquia add-database <subscription> <database>
|
26
|
-
acquia add-domain <subscription> <environment> <domain>
|
27
|
-
acquia copy-database <subscription> <database> <source> <destination>
|
28
|
-
acquia copy-files <subscription> <source> <destination>
|
29
|
-
acquia delete-database <subscription> <database>
|
30
|
-
acquia delete-domain <subscription> <environment> <domain>
|
31
|
-
acquia delete-
|
32
|
-
acquia
|
33
|
-
acquia
|
34
|
-
acquia
|
35
|
-
acquia list-
|
36
|
-
acquia list-
|
37
|
-
acquia list-
|
38
|
-
acquia list-
|
39
|
-
acquia list-
|
40
|
-
acquia list-
|
41
|
-
acquia list-
|
42
|
-
acquia
|
43
|
-
acquia
|
25
|
+
acquia add-database <subscription> <database> # Create a new database instance.
|
26
|
+
acquia add-domain <subscription> <environment> <domain> # Add a domain to an environment.
|
27
|
+
acquia copy-database <subscription> <database> <source> <destination> # Copy a database one from environment to another.
|
28
|
+
acquia copy-files <subscription> <source> <destination> # Copy files from one environment to another.
|
29
|
+
acquia delete-database <subscription> <database> # Remove all instances of a database.
|
30
|
+
acquia delete-domain <subscription> <environment> <domain> # Delete a domain from an environment.
|
31
|
+
acquia delete-ssh-user <subscription> <id> # Delete a SSH key from the subscription.
|
32
|
+
acquia delete-svn-user <subscription> <userid> # Delete a SVN user.
|
33
|
+
acquia deploy-code <subscription> <environment> <release> # Deploy a specific VCS branch or tag to an environment.
|
34
|
+
acquia help [COMMAND] # Describe available commands or one specific command
|
35
|
+
acquia list-database-backups <subscription> <environment> <database> # Get all backups for a database instance.
|
36
|
+
acquia list-databases <subscription> # See information about the databases within a subscription.
|
37
|
+
acquia list-domains <subscription> # Show all available domains for a subscription.
|
38
|
+
acquia list-environments <subscription> # Provide an overview of the environments in your subscription.
|
39
|
+
acquia list-servers <subscription> # Get a list of servers specifications for an environment.
|
40
|
+
acquia list-ssh-users <subscription> # Find out who has access and SSH keys.
|
41
|
+
acquia list-subscriptions # Find all subscriptions that you have access to.
|
42
|
+
acquia list-svn-users <subscription> # See all the SVN users on a subscription.
|
43
|
+
acquia list-tasks <subscription> # Display tasks associated with a subscription.
|
44
|
+
acquia login # Login to your Acquia account.
|
45
|
+
acquia purge-domain <subscription> <environment> # Clear the web cache of an environment or domain.
|
46
|
+
acquia restore-database-backup <subscription> <environment> <database> <backup_id> # Restore a database backup.
|
44
47
|
```
|
45
48
|
|
46
49
|
## Getting started
|
data/bin/acquia
CHANGED
@@ -372,6 +372,15 @@ class Acquia < Thor
|
|
372
372
|
success "Database #{database} has been copied from #{source} to #{destination}." if copy_database["id"]
|
373
373
|
end
|
374
374
|
|
375
|
+
# Public: Restore a previous database backup to a site.
|
376
|
+
#
|
377
|
+
# Returns a status message.
|
378
|
+
desc "restore-database-backup <subscription> <environment> <database> <backup_id>", "Restore a database backup."
|
379
|
+
def restore_database_backup(subscription, environment, database, backup_id)
|
380
|
+
restore_db = acquia_api_call "sites/#{subscription}/envs/#{environment}/dbs/#{database}/backups/#{backup_id}/restore", "POST"
|
381
|
+
success "Database backup #{backup_id} has been restored to #{database} in #{environment}." if restore_db["id"]
|
382
|
+
end
|
383
|
+
|
375
384
|
# Public: Show all the available domains for a subscription.
|
376
385
|
#
|
377
386
|
# Returns a list of the domains available.
|
@@ -488,6 +497,15 @@ class Acquia < Thor
|
|
488
497
|
end
|
489
498
|
end
|
490
499
|
|
500
|
+
# Public: Delete a SSH key from the subscription.
|
501
|
+
#
|
502
|
+
# Returns a status message.
|
503
|
+
desc "delete-ssh-user <subscription> <id>", "Delete a SSH key from the subscription."
|
504
|
+
def delete_ssh_user(subscription, id)
|
505
|
+
delete_ssh_request = acquia_api_call "sites/#{subscription}/sshkeys/#{id}", "DELETE"
|
506
|
+
success "SSH key #{id} has been successfully removed." if delete_ssh_request["id"]
|
507
|
+
end
|
508
|
+
|
491
509
|
# Public: Copy files from one environment to another.
|
492
510
|
#
|
493
511
|
# Returns a status message.
|
@@ -547,4 +565,4 @@ class Acquia < Thor
|
|
547
565
|
end
|
548
566
|
end
|
549
567
|
|
550
|
-
Acquia.start
|
568
|
+
Acquia.startAcquia.start
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acquia_toolbelt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Bednarz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -133,12 +133,14 @@ files:
|
|
133
133
|
- .gitignore
|
134
134
|
- Gemfile
|
135
135
|
- LICENSE
|
136
|
+
- README.md
|
136
137
|
- Rakefile
|
137
138
|
- acquia_toolbelt.gemspec
|
138
139
|
- bin/acquia
|
139
140
|
- lib/acquia_toolbelt.rb
|
141
|
+
- lib/acquia_toolbelt/auth.rb
|
140
142
|
- lib/acquia_toolbelt/version.rb
|
141
|
-
-
|
143
|
+
- tests/example_test.rb
|
142
144
|
homepage: https://github.com/jacobbednarz/acquia-toolbelt
|
143
145
|
licenses:
|
144
146
|
- MIT
|