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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd644413ef4c2f60cdf0a211b10d5cea9b3b86ab
4
- data.tar.gz: 03ae4e96ad72eabc2908a9c1f5d2bf5203037f54
3
+ metadata.gz: 57d3fff7fc4233d4c688c411074765392116a533
4
+ data.tar.gz: 04dea870e96a37ee4825cd847d69d4010c0e0185
5
5
  SHA512:
6
- metadata.gz: 55cf41152302df906d414da2aa0ab658f3a5224b9b992373eb03aea2f8e513a2c9b3134d222f2177f015a102c1725bb66d278c140703db73370bc69dd39ddb42
7
- data.tar.gz: 734424cc39d2dfe462b54e38b5769b6eb91c8d28e3fd8f66ff767f40c05e5608143a5eb75773f413834608a4349b4ece339e31c257cb17d0c6cb0f51f3b4e9db
6
+ metadata.gz: 5be7dc55325bcd456f648fba94e4ebcf0e66a8870c20f40e33e376677c96e78c29b7e46be0e75f0179391d893cae3ffe4e892b90ff89cd9203cf2657539267e6
7
+ data.tar.gz: 69ff89cb26d29a0bb46d5be937ad5ed8fed42e0bf06c33504eed74f3d9255f4d106289916c00613ebae971dcf6c4c6caf85f530156c080b29ffbe06d961c7a55
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ey-pro-cli (0.0.6)
4
+ ey-pro-cli (0.0.7)
5
5
  addressable (~> 2.2)
6
6
  cistern (~> 0.11, >= 0.11.1)
7
7
  colorize
@@ -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(EyPROCliVersion::VERSION) < Gem::Version.new(current_version)
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: #{EyPROCliVersion::VERSION}
126
+ Installed version: #{EyProCliVersion::VERSION}
121
127
  Current Version: #{current_version}
122
128
  EOF
123
129
  .yellow
@@ -1,3 +1,3 @@
1
1
  module EyProCliVersion
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey-pro-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Engine Yard Cloud Team