ey-pro-cli 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ey_pro_cli.rb +9 -4
- 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: ac9a58677080f1d5caa003ca925b70f002bd6e85
|
4
|
+
data.tar.gz: 6d41e2b55b65c519b5b7ee8b52c340914316229c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eda366bd4a0670fd94a4e75b8cf3a1ba23603b1a3edda408796ffd0ea16d94d74a0640507111434313cb5c5d75d7144f2bc22bb981924b9428fe8b7454eaa68
|
7
|
+
data.tar.gz: a23042a4cb5b2e7284141fdb77e19fac11810e3ae360d54ebb8e7bc98385ec4459e512b945a4caaa2045e6e110d5df66c1d2400f2dca863770ad1cc150fd34d9
|
data/lib/ey_pro_cli.rb
CHANGED
@@ -97,7 +97,7 @@ class EyProCli < Thor
|
|
97
97
|
option :environment, desc: "Name of the environment to deploy to.", required: true, aliases: "-e"
|
98
98
|
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"
|
99
99
|
option :ref, desc: "A git reference to deploy."
|
100
|
-
option :migrate, desc: "The migration command to run."
|
100
|
+
option :migrate, desc: "The migration command to run. This option has a 50 character limit."
|
101
101
|
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"
|
102
102
|
option :stream, desc: "Stream deploy output to console. This option does not take an argument."
|
103
103
|
option "no-migrate", desc: "Do not run migration command. This option does not take an argument."
|
@@ -137,13 +137,18 @@ This can be retrieved by running "ey-pro accounts".
|
|
137
137
|
request.subscribe { |m| print m["message"] if m.is_a?(Hash) }
|
138
138
|
puts "" # fix console output from stream
|
139
139
|
else
|
140
|
-
request.ready!
|
140
|
+
request.wait_for { |r| r.ready? } # dont raise from ready!
|
141
141
|
end
|
142
142
|
|
143
143
|
if request.successful
|
144
|
-
puts "Deploy successful!"
|
144
|
+
puts "Deploy successful!".green
|
145
145
|
else
|
146
|
-
abort
|
146
|
+
abort <<-EOF
|
147
|
+
Deploy failed!
|
148
|
+
Request output:
|
149
|
+
#{request.message}
|
150
|
+
EOF
|
151
|
+
.red
|
147
152
|
end
|
148
153
|
end
|
149
154
|
|
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.16
|
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-08-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -640,7 +640,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
640
640
|
version: '0'
|
641
641
|
requirements: []
|
642
642
|
rubyforge_project:
|
643
|
-
rubygems_version: 2.
|
643
|
+
rubygems_version: 2.4.5
|
644
644
|
signing_key:
|
645
645
|
specification_version: 4
|
646
646
|
summary: Command-line deployment for Engine Yard pro
|