ubalo 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/ubalo +9 -7
- metadata +19 -8
data/bin/ubalo
CHANGED
@@ -45,7 +45,7 @@ end
|
|
45
45
|
|
46
46
|
def local_config
|
47
47
|
unless @local_config
|
48
|
-
raise "Please run this command from within a local pod directory"
|
48
|
+
raise UbaloMessage, "Please run this command from within a local pod directory"
|
49
49
|
end
|
50
50
|
@local_config
|
51
51
|
end
|
@@ -110,7 +110,7 @@ def process_download response, destination_path=nil
|
|
110
110
|
destination_path ||= name
|
111
111
|
|
112
112
|
if File.exists?(destination_path)
|
113
|
-
raise "directory #{destination_path.inspect} already exists"
|
113
|
+
raise UbaloMessage, "directory #{destination_path.inspect} already exists"
|
114
114
|
end
|
115
115
|
|
116
116
|
FileUtils.mkdir(destination_path)
|
@@ -160,20 +160,20 @@ command :create do |c|
|
|
160
160
|
else
|
161
161
|
pod_name = hl.ask("New pod name: ")
|
162
162
|
if pod_name.empty?
|
163
|
-
raise "No pod name given"
|
163
|
+
raise UbaloMessage, "No pod name given"
|
164
164
|
end
|
165
165
|
end
|
166
166
|
destination_path = pod_name
|
167
167
|
|
168
168
|
if File.exists?(pod_name)
|
169
|
-
raise "directory #{destination_path} already exists, giving up."
|
169
|
+
raise UbaloMessage, "directory #{destination_path} already exists, giving up."
|
170
170
|
end
|
171
171
|
|
172
172
|
templates = ubalo.available_templates
|
173
173
|
if options['type']
|
174
174
|
pod_type = options['type']
|
175
175
|
unless templates.include? pod_type
|
176
|
-
raise "Invalid pod type"
|
176
|
+
raise UbaloMessage, "Invalid pod type"
|
177
177
|
end
|
178
178
|
else
|
179
179
|
pod_type = hl.choose do |menu|
|
@@ -458,8 +458,7 @@ pre do |global,command,options,args|
|
|
458
458
|
end
|
459
459
|
|
460
460
|
unless token or (command && command.name == :login)
|
461
|
-
|
462
|
-
raise UbaloExit, 1
|
461
|
+
raise UbaloMessage, "No credentials found. Please run 'ubalo login'."
|
463
462
|
end
|
464
463
|
|
465
464
|
local_config_filename = ".ubalo/config"
|
@@ -493,6 +492,9 @@ on_error do |exception|
|
|
493
492
|
when UbaloMessage
|
494
493
|
$stderr.puts "Error: #{exception.message}"
|
495
494
|
exit 1
|
495
|
+
when Interrupt
|
496
|
+
$stderr.puts "Cancelled!"
|
497
|
+
exit 1
|
496
498
|
else
|
497
499
|
$stderr.puts "Error! Unfortunately something went wrong. Please contact us: errors@ubalo.com."
|
498
500
|
raise # and go on to raise
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ubalo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-12 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gli
|
16
|
-
requirement: &
|
16
|
+
requirement: &2156840040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156840040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: highline
|
27
|
-
requirement: &
|
27
|
+
requirement: &2156839200 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,21 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156839200
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: json
|
38
|
+
requirement: &2156838140 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2156838140
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: rest-client
|
38
|
-
requirement: &
|
49
|
+
requirement: &2156837500 !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,7 +54,7 @@ dependencies:
|
|
43
54
|
version: 1.6.3
|
44
55
|
type: :runtime
|
45
56
|
prerelease: false
|
46
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156837500
|
47
58
|
description: CLI and API client for Ubalo
|
48
59
|
email: dev@ubalo.com
|
49
60
|
executables:
|