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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1353efd388c5aafb2774d31f37759cb4d0385576
4
- data.tar.gz: e0a7ad78e9b4a7a5980ff3e4592628b5566b9c02
3
+ metadata.gz: 193ca0050599be6b864307cbb796f0ee26c060ca
4
+ data.tar.gz: 011504b98723d951a280228eac426a70a2717a87
5
5
  SHA512:
6
- metadata.gz: 27ba9dfc32f0a0a8dfcc0daf1f0b7143a376d576be6829405eaca4fc91cbb7a5eb453a4ce4d5da85f457a6be0dae8071d94c409baef575496664547a2cb06f41
7
- data.tar.gz: 3fc648d8392a6a42adf877b6939bc68d3e991bcaba25812b918dd6eba48c52469bb36d5f4f6f785636084bf86db71e7c9601ae31e166a63766e1cc5ddadecbd1
6
+ metadata.gz: a17a7424098d840397df9d68925e0418d0ff320ca1181513be5326c8fa4848d8ddf2de764186f8c7425af76fe64ba498081ee262aa7af317a68122c054090af8
7
+ data.tar.gz: 6517690d7a3f34a479c15d0224ece47823d16417a25dcb24d697c6b5c80af067918489fe3c193e5705003d001c6d3bff3c124de783cf7f5b436937a747483b40
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ey-pro-cli (0.0.11)
4
+ ey-pro-cli (0.0.13)
5
5
  addressable (~> 2.2)
6
6
  cistern (~> 0.11, >= 0.11.1)
7
7
  colorize
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
- -e, --environment=ENVIRONMENT # Name of the environment to deploy to.
35
- -c, [--account=ACCOUNT] # Name 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.
36
- -a, --app=APP # Application name to deploy. If :account is not specified, this will be the first app that matches the criteria in the accounts you have access to.
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
  ```
@@ -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={})
@@ -1,3 +1,3 @@
1
1
  module EyProCliVersion
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey-pro-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Engine Yard Cloud Team