ey-pro-cli 0.0.6 → 0.0.7
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 +10 -10
- data/lib/ey_pro_cli.rb +13 -13
- data/lib/ey_pro_cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd644413ef4c2f60cdf0a211b10d5cea9b3b86ab
|
4
|
+
data.tar.gz: 03ae4e96ad72eabc2908a9c1f5d2bf5203037f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55cf41152302df906d414da2aa0ab658f3a5224b9b992373eb03aea2f8e513a2c9b3134d222f2177f015a102c1725bb66d278c140703db73370bc69dd39ddb42
|
7
|
+
data.tar.gz: 734424cc39d2dfe462b54e38b5769b6eb91c8d28e3fd8f66ff767f40c05e5608143a5eb75773f413834608a4349b4ece339e31c257cb17d0c6cb0f51f3b4e9db
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ey-pro-cli
|
2
2
|
|
3
|
-
Command line interface for interacting with Engine Yard
|
3
|
+
Command line interface for interacting with Engine Yard PRO. This gem is the spiritual successor to the [engineyard](https://github.com/engineyard/engineyard) gem.
|
4
4
|
|
5
5
|
### Install
|
6
6
|
|
@@ -25,16 +25,16 @@ Delete your Engine Yard API token from the configuration file. Useful for switc
|
|
25
25
|
|
26
26
|
#### ey deploy
|
27
27
|
|
28
|
-
Deploy your application to Engine Yard
|
28
|
+
Deploy your application to Engine Yard PRO.
|
29
29
|
|
30
30
|
```
|
31
31
|
Options:
|
32
|
-
[--ref=REF] # A git reference to deploy
|
33
|
-
[--migrate=MIGRATE] # The migration command to run
|
34
|
-
-e, --environment=ENVIRONMENT
|
35
|
-
-
|
36
|
-
|
37
|
-
[--stream=STREAM] # Stream deploy output to console
|
38
|
-
[--no-migrate=NO-MIGRATE] # Do not run migration command
|
39
|
-
[--no-update-check=NO-UPDATE-CHECK] # Do not check for updates
|
32
|
+
[--ref=REF] # A git reference to deploy.
|
33
|
+
[--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.
|
39
|
+
[--no-update-check=NO-UPDATE-CHECK] # Do not check for updates.
|
40
40
|
```
|
data/lib/ey_pro_cli.rb
CHANGED
@@ -19,7 +19,7 @@ class EyProCli < Thor
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
desc "login", "Retrieve API token from Engine Yard
|
22
|
+
desc "login", "Retrieve API token from Engine Yard PRO"
|
23
23
|
|
24
24
|
def login
|
25
25
|
email = ENV["EMAIL"] || ask("Email:")
|
@@ -43,7 +43,7 @@ class EyProCli < Thor
|
|
43
43
|
abort "Invalid email or password".yellow
|
44
44
|
end
|
45
45
|
|
46
|
-
desc "logout", "Remove your Engine Yard
|
46
|
+
desc "logout", "Remove your Engine Yard PRO API token"
|
47
47
|
|
48
48
|
def logout
|
49
49
|
if core_yaml[core_url]
|
@@ -55,15 +55,15 @@ class EyProCli < Thor
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
desc "deploy [OPTIONS]", "Deploy your EY
|
59
|
-
option :environment, desc: "Name of the environment to deploy to", required: true, aliases: "-e"
|
60
|
-
option :account, desc: "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.", aliases: "-
|
61
|
-
option :ref, desc: "A git reference to deploy"
|
62
|
-
option :migrate, desc: "The migration command to run"
|
63
|
-
option :app, desc: "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.", required: true
|
64
|
-
option :stream, desc: "Stream deploy output to console"
|
65
|
-
option "no-migrate", desc: "Do not run migration command"
|
66
|
-
option "no-update-check", desc: "Do not check for updates"
|
58
|
+
desc "deploy [OPTIONS]", "Deploy your EY PRO application."
|
59
|
+
option :environment, desc: "Name of the environment to deploy to.", required: true, aliases: "-e"
|
60
|
+
option :account, desc: "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.", aliases: "-c"
|
61
|
+
option :ref, desc: "A git reference to deploy."
|
62
|
+
option :migrate, desc: "The migration command to run."
|
63
|
+
option :app, desc: "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.", required: true, aliases: "-a"
|
64
|
+
option :stream, desc: "Stream deploy output to console."
|
65
|
+
option "no-migrate", desc: "Do not run migration command."
|
66
|
+
option "no-update-check", desc: "Do not check for updates."
|
67
67
|
|
68
68
|
def deploy
|
69
69
|
check_for_updates unless options["no-update-check"]
|
@@ -114,10 +114,10 @@ class EyProCli < Thor
|
|
114
114
|
return
|
115
115
|
end
|
116
116
|
current_version = gem.current_version
|
117
|
-
if Gem::Version.new(
|
117
|
+
if Gem::Version.new(EyPROCliVersion::VERSION) < Gem::Version.new(current_version)
|
118
118
|
print <<-EOF
|
119
119
|
ey-pro-cli gem outdated, consider updating!
|
120
|
-
Installed version: #{
|
120
|
+
Installed version: #{EyPROCliVersion::VERSION}
|
121
121
|
Current Version: #{current_version}
|
122
122
|
EOF
|
123
123
|
.yellow
|
data/lib/ey_pro_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey-pro-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Engine Yard Cloud Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -623,7 +623,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
623
623
|
version: '0'
|
624
624
|
requirements: []
|
625
625
|
rubyforge_project:
|
626
|
-
rubygems_version: 2.
|
626
|
+
rubygems_version: 2.2.2
|
627
627
|
signing_key:
|
628
628
|
specification_version: 4
|
629
629
|
summary: Command-line deployment for Engine Yard pro
|