ey-pro-cli 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +17 -5
- data/lib/ey_pro_cli.rb +5 -0
- data/lib/ey_pro_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: 193ca0050599be6b864307cbb796f0ee26c060ca
|
4
|
+
data.tar.gz: 011504b98723d951a280228eac426a70a2717a87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a17a7424098d840397df9d68925e0418d0ff320ca1181513be5326c8fa4848d8ddf2de764186f8c7425af76fe64ba498081ee262aa7af317a68122c054090af8
|
7
|
+
data.tar.gz: 6517690d7a3f34a479c15d0224ece47823d16417a25dcb24d697c6b5c80af067918489fe3c193e5705003d001c6d3bff3c124de783cf7f5b436937a747483b40
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,18 +23,30 @@ Retrieve your Engine Yard API token
|
|
23
23
|
|
24
24
|
Delete your Engine Yard API token from the configuration file. Useful for switching accounts
|
25
25
|
|
26
|
+
#### ey accounts
|
27
|
+
|
28
|
+
Retrieve a list of Engine Yard PRO accounts that you have access to.
|
29
|
+
|
30
|
+
#### ey environments
|
31
|
+
|
32
|
+
Retrieve a list of Engine Yard PRO environments that you have access to.
|
33
|
+
|
34
|
+
#### ey applications
|
35
|
+
|
36
|
+
Retrieve a list of Engine Yard PRO applications that you have access to.
|
37
|
+
|
26
38
|
#### ey deploy
|
27
39
|
|
28
40
|
Deploy your application to Engine Yard PRO.
|
29
41
|
|
30
42
|
```
|
31
43
|
Options:
|
44
|
+
-e, --environment=ENVIRONMENT # Name of the environment to deploy to.
|
45
|
+
-c, [--account=ACCOUNT] # Name or ID of the account that the environment resides in. If no account is specified, the app will deploy to the first environment that meets the criteria, in the accounts you have access to.
|
32
46
|
[--ref=REF] # A git reference to deploy.
|
33
47
|
[--migrate=MIGRATE] # The migration command to run.
|
34
|
-
|
35
|
-
|
36
|
-
-
|
37
|
-
[--stream=STREAM] # Stream deploy output to console.
|
38
|
-
[--no-migrate=NO-MIGRATE] # Do not run migration command.
|
48
|
+
-a, --app=APP # Application name or ID to deploy. If :account is not specified, this will be the first app that matches the criteria in the accounts you have access to.
|
49
|
+
[--stream=STREAM] # Stream deploy output to console. This option does not take an argument.
|
50
|
+
[--no-migrate=NO-MIGRATE] # Do not run migration command. This option does not take an argument.
|
39
51
|
[--no-update-check=NO-UPDATE-CHECK] # Do not check for updates.
|
40
52
|
```
|
data/lib/ey_pro_cli.rb
CHANGED
@@ -8,6 +8,7 @@ $:.unshift(File.dirname(__FILE__) + '/vendor/core')
|
|
8
8
|
require 'colorize'
|
9
9
|
require 'thor'
|
10
10
|
require 'table_print'
|
11
|
+
require 'fileutils'
|
11
12
|
require File.expand_path(File.dirname(__FILE__) + '/ey_pro_cli/version')
|
12
13
|
require File.expand_path(File.dirname(__FILE__) + '/vendor/core/ey-core')
|
13
14
|
|
@@ -200,6 +201,10 @@ Current Version: #{current_version.to_s}
|
|
200
201
|
|
201
202
|
def core_yaml
|
202
203
|
@core_yaml ||= YAML.load_file(self.class.core_file) || {}
|
204
|
+
rescue Errno::ENOENT => e
|
205
|
+
puts "Could not find #{self.class.core_file}, creating.".yellow
|
206
|
+
FileUtils.touch(self.class.core_file)
|
207
|
+
retry
|
203
208
|
end
|
204
209
|
|
205
210
|
def core_account_for(options={})
|
data/lib/ey_pro_cli/version.rb
CHANGED