ey-pro-cli 0.0.12 → 0.0.13
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/lib/ey_pro_cli.rb +6 -8
- data/lib/ey_pro_cli/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1353efd388c5aafb2774d31f37759cb4d0385576
|
4
|
+
data.tar.gz: e0a7ad78e9b4a7a5980ff3e4592628b5566b9c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ba9dfc32f0a0a8dfcc0daf1f0b7143a376d576be6829405eaca4fc91cbb7a5eb453a4ce4d5da85f457a6be0dae8071d94c409baef575496664547a2cb06f41
|
7
|
+
data.tar.gz: 3fc648d8392a6a42adf877b6939bc68d3e991bcaba25812b918dd6eba48c52469bb36d5f4f6f785636084bf86db71e7c9601ae31e166a63766e1cc5ddadecbd1
|
data/Gemfile.lock
CHANGED
data/lib/ey_pro_cli.rb
CHANGED
@@ -98,8 +98,8 @@ class EyProCli < Thor
|
|
98
98
|
option :ref, desc: "A git reference to deploy."
|
99
99
|
option :migrate, desc: "The migration command to run."
|
100
100
|
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"
|
101
|
-
option :stream, desc: "Stream deploy output to console."
|
102
|
-
option "no-migrate", desc: "Do not run migration command."
|
101
|
+
option :stream, desc: "Stream deploy output to console. This option does not take an argument."
|
102
|
+
option "no-migrate", desc: "Do not run migration command. This option does not take an argument."
|
103
103
|
option "no-update-check", desc: "Do not check for updates."
|
104
104
|
|
105
105
|
def deploy
|
@@ -155,7 +155,7 @@ This can be retrieved by running "ey-pro accounts".
|
|
155
155
|
@core_client ||= Ey::Core::Client.new(url: core_url, config_file: self.class.core_file)
|
156
156
|
rescue RuntimeError => e
|
157
157
|
if e.message.match(/missing token/i)
|
158
|
-
abort "Missing credentials
|
158
|
+
abort "Missing credentials: Run 'ey-pro login' to retrieve your Engine Yard PRO API token.".yellow
|
159
159
|
else
|
160
160
|
raise e
|
161
161
|
end
|
@@ -179,10 +179,8 @@ This can be retrieved by running "ey-pro accounts".
|
|
179
179
|
def check_for_updates
|
180
180
|
return nil if ENV["MOCK_CLI"]
|
181
181
|
|
182
|
-
|
183
|
-
|
184
|
-
fetcher = Gem::SpecFetcher.new(sources)
|
185
|
-
current_version = fetcher.available_specs(:latest).first.values.first.detect { |g| g.name == 'ey-pro-cli' }.version
|
182
|
+
gem = core_client.gems.get('ey-pro-cli')
|
183
|
+
current_version = Gem::Version.new(gem.current_version)
|
186
184
|
if Gem::Version.new(EyProCliVersion::VERSION) < current_version
|
187
185
|
print <<-EOF
|
188
186
|
ey-pro-cli gem outdated, consider updating!
|
@@ -191,7 +189,7 @@ Current Version: #{current_version.to_s}
|
|
191
189
|
EOF
|
192
190
|
.yellow
|
193
191
|
else
|
194
|
-
puts "ey-pro-cli is up to date".green
|
192
|
+
puts "ey-pro-cli is up to date.".green
|
195
193
|
end
|
196
194
|
end
|
197
195
|
|
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.13
|
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-
|
11
|
+
date: 2015-08-03 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
|
@@ -654,4 +654,3 @@ test_files:
|
|
654
654
|
- spec/spec_helper.rb
|
655
655
|
- spec/support/core_helper.rb
|
656
656
|
- spec/support/yaml_helper.rb
|
657
|
-
has_rdoc:
|