ey-pro-cli 0.0.7 → 0.0.8
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 +8 -2
- data/lib/ey_pro_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57d3fff7fc4233d4c688c411074765392116a533
|
4
|
+
data.tar.gz: 04dea870e96a37ee4825cd847d69d4010c0e0185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5be7dc55325bcd456f648fba94e4ebcf0e66a8870c20f40e33e376677c96e78c29b7e46be0e75f0179391d893cae3ffe4e892b90ff89cd9203cf2657539267e6
|
7
|
+
data.tar.gz: 69ff89cb26d29a0bb46d5be937ad5ed8fed42e0bf06c33504eed74f3d9255f4d106289916c00613ebae971dcf6c4c6caf85f530156c080b29ffbe06d961c7a55
|
data/Gemfile.lock
CHANGED
data/lib/ey_pro_cli.rb
CHANGED
@@ -98,6 +98,12 @@ class EyProCli < Thor
|
|
98
98
|
|
99
99
|
def core_client
|
100
100
|
@core_client ||= Ey::Core::Client.new(url: core_url, config_file: self.class.core_file)
|
101
|
+
rescue RuntimeError => e
|
102
|
+
if e.message.match(/missing token/i)
|
103
|
+
abort "Missing credentials. Run 'ey-pro login' to retrieve your Engine Yard PRO API token".yellow
|
104
|
+
else
|
105
|
+
raise e
|
106
|
+
end
|
101
107
|
end
|
102
108
|
|
103
109
|
def core_url
|
@@ -114,10 +120,10 @@ class EyProCli < Thor
|
|
114
120
|
return
|
115
121
|
end
|
116
122
|
current_version = gem.current_version
|
117
|
-
if Gem::Version.new(
|
123
|
+
if Gem::Version.new(EyProCliVersion::VERSION) < Gem::Version.new(current_version)
|
118
124
|
print <<-EOF
|
119
125
|
ey-pro-cli gem outdated, consider updating!
|
120
|
-
Installed version: #{
|
126
|
+
Installed version: #{EyProCliVersion::VERSION}
|
121
127
|
Current Version: #{current_version}
|
122
128
|
EOF
|
123
129
|
.yellow
|
data/lib/ey_pro_cli/version.rb
CHANGED