ey-pro-cli 0.0.9 → 0.0.10
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 +5 -1
- 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: bdcb5d58754c356a886b61cfb4c76b206e2e2c37
|
4
|
+
data.tar.gz: c46cd11202f0ece0718cf2c7e7a758c8bdf8e311
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7506c5287842faaf5bf52709799224c430879653302f78b77ea6898bca5011a28e7e30c18db31b88502f2a7ff77350bab2169b4945f5e909f2183ae69eec1283
|
7
|
+
data.tar.gz: 71780323f597b33b4576fe2e09c0af720119cbf6184203bb075ae8ad69a959a4821fa6f5d7169394f7d4d1def975078856f4a2d7faea24f62dac6f739105e32d
|
data/Gemfile.lock
CHANGED
data/lib/ey_pro_cli.rb
CHANGED
@@ -12,6 +12,8 @@ require File.expand_path(File.dirname(__FILE__) + '/ey_pro_cli/version')
|
|
12
12
|
require File.expand_path(File.dirname(__FILE__) + '/vendor/core/ey-core')
|
13
13
|
|
14
14
|
class EyProCli < Thor
|
15
|
+
class InvalidEnvironment < RuntimeError; end
|
16
|
+
|
15
17
|
class << self
|
16
18
|
attr_accessor :core_file
|
17
19
|
|
@@ -78,7 +80,9 @@ class EyProCli < Thor
|
|
78
80
|
|
79
81
|
def deploy
|
80
82
|
check_for_updates unless options["no-update-check"]
|
81
|
-
environment = core_environment_for(options)
|
83
|
+
unless environment = core_environment_for(options)
|
84
|
+
abort "Unable to locate environment #{options[:environment]} in #{options[:account]}".red
|
85
|
+
end
|
82
86
|
app = core_application_for(options)
|
83
87
|
|
84
88
|
deploy_options = {}
|
data/lib/ey_pro_cli/version.rb
CHANGED