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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f7fa5bd9ad87d284ef0578b76eb86473af847d6
4
- data.tar.gz: fbc5788d622d35566cc59f934737c4402f373231
3
+ metadata.gz: ac9a58677080f1d5caa003ca925b70f002bd6e85
4
+ data.tar.gz: 6d41e2b55b65c519b5b7ee8b52c340914316229c
5
5
  SHA512:
6
- metadata.gz: b7e8ef4b28b0f65102c3219ffe7c8bf93a40a659723da6d0a3010381ec92de03f9b1dc4c3ad2112f1bbf8904912e3da8244cbd7758887e52d89305f97fa37fe8
7
- data.tar.gz: b745cf16d25cdf35a0ac104ff197d59ce33c2b3835a4663870f9181078c4b0ca324dbc2ad52aa73bd6420ec231c119bc5de84919d288e2839aa1426941dbe5f6
6
+ metadata.gz: 9eda366bd4a0670fd94a4e75b8cf3a1ba23603b1a3edda408796ffd0ea16d94d74a0640507111434313cb5c5d75d7144f2bc22bb981924b9428fe8b7454eaa68
7
+ data.tar.gz: a23042a4cb5b2e7284141fdb77e19fac11810e3ae360d54ebb8e7bc98385ec4459e512b945a4caaa2045e6e110d5df66c1d2400f2dca863770ad1cc150fd34d9
@@ -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 "Deploy failed!"
146
+ abort <<-EOF
147
+ Deploy failed!
148
+ Request output:
149
+ #{request.message}
150
+ EOF
151
+ .red
147
152
  end
148
153
  end
149
154
 
@@ -1,3 +1,3 @@
1
1
  module EyProCliVersion
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
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.15
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-05 00:00:00.000000000 Z
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.2.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