ey-pro-cli 0.0.16 → 0.0.17

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: ac9a58677080f1d5caa003ca925b70f002bd6e85
4
- data.tar.gz: 6d41e2b55b65c519b5b7ee8b52c340914316229c
3
+ metadata.gz: 845c9345ad1d3c61d63550cfb35ddb9fbf362efc
4
+ data.tar.gz: 52e8342248b75cbb6d89b77e5dae74fa60b58c69
5
5
  SHA512:
6
- metadata.gz: 9eda366bd4a0670fd94a4e75b8cf3a1ba23603b1a3edda408796ffd0ea16d94d74a0640507111434313cb5c5d75d7144f2bc22bb981924b9428fe8b7454eaa68
7
- data.tar.gz: a23042a4cb5b2e7284141fdb77e19fac11810e3ae360d54ebb8e7bc98385ec4459e512b945a4caaa2045e6e110d5df66c1d2400f2dca863770ad1cc150fd34d9
6
+ metadata.gz: b4235724d3a472b1dd4840644d20e8b0ad0511dc0472aefe7936eb9a37808454b4850e917d6096c96d30c7ed9f68a4fc43c704e2620dc3bf182f076e317c36b7
7
+ data.tar.gz: 999da6b298f01f238877c0fafbd965724147a71e88a328c97ac5a09739d39286ee94657d2485e5f0698687c39f36580eb04131a3d87b3871925bca8411232a00
@@ -132,7 +132,10 @@ This can be retrieved by running "ey-pro accounts".
132
132
  deploy_options.merge!(migrate_command: '') if options["no-migrate"]
133
133
  request = environment.deploy(app, deploy_options)
134
134
 
135
- puts "Deploy started to environment: #{environment.name} with application: #{app.name}"
135
+ puts <<-EOF
136
+ Deploy started to environment: #{environment.name} with application: #{app.name}
137
+ Request ID: #{request.id}
138
+ EOF
136
139
  if options[:stream]
137
140
  request.subscribe { |m| print m["message"] if m.is_a?(Hash) }
138
141
  puts "" # fix console output from stream
@@ -152,6 +155,14 @@ Request output:
152
155
  end
153
156
  end
154
157
 
158
+ desc "version", "List versions of ey-pro-cli and embedded core client"
159
+ def version
160
+ puts <<-EOF
161
+ Ey PRO CLI Version: #{EyProCliVersion::VERSION}
162
+ Core client version: #{Ey::Core::VERSION}
163
+ EOF
164
+ end
165
+
155
166
  no_commands do
156
167
  def unauthenticated_core_client
157
168
  @unauthenticated_core_client ||= Ey::Core::Client.new(token: nil, url: core_url)
@@ -1,3 +1,3 @@
1
1
  module EyProCliVersion
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe EyProCli do
4
+ describe "version" do
5
+ it "returns the version" do
6
+ output = capture(:stdout) { subject.version }
7
+ expect(output.split("\n")).to contain_exactly(a_string_matching(EyProCliVersion::VERSION), a_string_matching(Ey::Core::VERSION))
8
+ end
9
+ end
10
+ 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.16
4
+ version: 0.0.17
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-06 00:00:00.000000000 Z
11
+ date: 2015-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -621,6 +621,7 @@ files:
621
621
  - spec/spec_helper.rb
622
622
  - spec/support/core_helper.rb
623
623
  - spec/support/yaml_helper.rb
624
+ - spec/version_spec.rb
624
625
  homepage:
625
626
  licenses: []
626
627
  metadata: {}
@@ -654,4 +655,5 @@ test_files:
654
655
  - spec/spec_helper.rb
655
656
  - spec/support/core_helper.rb
656
657
  - spec/support/yaml_helper.rb
658
+ - spec/version_spec.rb
657
659
  has_rdoc: