aptible-cli 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21e712a5221f979075e3b6f8db27ced161633d66
4
- data.tar.gz: 37333c2bf6da584560dad729525432d41f758598
3
+ metadata.gz: 2f90b26f6b29cf2e26b691844744b479fa9a8c70
4
+ data.tar.gz: 7fcc29ab3666cf568a56a56c3005699812662684
5
5
  SHA512:
6
- metadata.gz: 0a2ffa00c630b2f98538db568be48b7af5c9cb1449941c85d1b29f0c249187de755da7cb544aaa0b76322035a5663b5c2c2ccdb1dacee269a426b9cbfec8eaec
7
- data.tar.gz: d6199b9c406489e3e36a87bf0f315a6070fdc22b4da9dccf5d42ee8b6cfffd34a8426b75054cc5f425d6bf1fc26b6c59b2507c722eb0103c5d1bffd03ce2026d
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
- Install the command line tool using Rubygems:
11
+ Add the following line to your application's Gemfile.
12
12
 
13
- gem install aptible-cli
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
- TODO: Add usage notes.
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)
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module CLI
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery