aptible-cli 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +28 -3
- data/lib/aptible/cli/subcommands/config.rb +12 -0
- data/lib/aptible/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f90b26f6b29cf2e26b691844744b479fa9a8c70
|
4
|
+
data.tar.gz: 7fcc29ab3666cf568a56a56c3005699812662684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35515652457d4ab6a0fc3237addec90c536a346dc69d4dbd5b30093ce814740b3f60eaa5387dd670915f63ae4c004e16cec9cedf73dd7424b82cb2e3ab678159
|
7
|
+
data.tar.gz: 73310fe4db3a57c381aa51badb786a17cd4d0129a31efb19cac9862e9f3b089bad4b0106cd489ecedc5b824e12db724d3f9041a4f80c57d9eabcad2e1fe70755
|
data/README.md
CHANGED
@@ -8,19 +8,44 @@ Command-line interface for Aptible services.
|
|
8
8
|
|
9
9
|
## Installation
|
10
10
|
|
11
|
-
|
11
|
+
Add the following line to your application's Gemfile.
|
12
12
|
|
13
|
-
gem
|
13
|
+
gem 'aptible-cli'
|
14
|
+
|
15
|
+
And then run `bundle install`.
|
16
|
+
|
17
|
+
*NOTE: To install the `aptible` tool as a system-level binary, consider using the [aptible-toolbelt gem](https://github.com/aptible/aptible-toolbelt), which is performance-optimized through dependency pinning.*
|
14
18
|
|
15
19
|
## Usage
|
16
20
|
|
17
|
-
|
21
|
+
From `aptible help`:
|
22
|
+
|
23
|
+
```
|
24
|
+
Commands:
|
25
|
+
aptible apps # List all applications
|
26
|
+
aptible apps:create HANDLE # Create a new application
|
27
|
+
aptible config # Print an app's current configuration
|
28
|
+
aptible config:add # Add an ENV variable to an app
|
29
|
+
aptible config:rm # Remove an ENV variable from an app
|
30
|
+
aptible config:set # Alias for config:add
|
31
|
+
aptible config:unset # Alias for config:rm
|
32
|
+
aptible db:clone SOURCE DEST # Clone a database to create a new one
|
33
|
+
aptible db:create HANDLE # Create a new database
|
34
|
+
aptible db:dump HANDLE # Dump a remote database to file
|
35
|
+
aptible db:tunnel HANDLE # Create a local tunnel to a database
|
36
|
+
aptible login # Log in to Aptible
|
37
|
+
aptible rebuild # Rebuild an app, and restart its services
|
38
|
+
aptible restart # Restart all services associated with an app
|
39
|
+
aptible ssh [COMMAND] # Run a command against an app
|
40
|
+
aptible version # Print Aptible CLI version
|
41
|
+
```
|
18
42
|
|
19
43
|
## Contributing
|
20
44
|
|
21
45
|
1. Fork the project.
|
22
46
|
1. Commit your changes, with specs.
|
23
47
|
1. Ensure that your code passes specs (`rake spec`) and meets Aptible's Ruby style guide (`rake rubocop`).
|
48
|
+
1. If you add a command, update this README with the output of `aptible help | grep -v help`.
|
24
49
|
1. Create a new pull request on GitHub.
|
25
50
|
|
26
51
|
## Copyright and License
|
@@ -31,6 +31,12 @@ module Aptible
|
|
31
31
|
poll_for_success(operation)
|
32
32
|
end
|
33
33
|
|
34
|
+
desc 'config:set', 'Alias for config:add'
|
35
|
+
option :app
|
36
|
+
define_method 'config:set' do |*args|
|
37
|
+
send('config:add', *args)
|
38
|
+
end
|
39
|
+
|
34
40
|
desc 'config:rm', 'Remove an ENV variable from an app'
|
35
41
|
option :app
|
36
42
|
define_method 'config:rm' do |*args|
|
@@ -42,6 +48,12 @@ module Aptible
|
|
42
48
|
poll_for_success(operation)
|
43
49
|
end
|
44
50
|
|
51
|
+
desc 'config:unset', 'Alias for config:rm'
|
52
|
+
option :app
|
53
|
+
define_method 'config:unset' do |*args|
|
54
|
+
send('config:add', *args)
|
55
|
+
end
|
56
|
+
|
45
57
|
private
|
46
58
|
|
47
59
|
def formatted_config(env)
|
data/lib/aptible/cli/version.rb
CHANGED