vmcu 0.3.17 → 0.3.17.1
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/lib/cli/commands/misc.rb +38 -24
- data/lib/cli/version.rb +1 -1
- metadata +191 -243
data/lib/cli/commands/misc.rb
CHANGED
@@ -120,34 +120,48 @@ module VMC::Cli::Command
|
|
120
120
|
|
121
121
|
end
|
122
122
|
|
123
|
-
def
|
124
|
-
require 'win32/registry'
|
123
|
+
def load_registry_targets
|
125
124
|
keyname = 'Software\Uhuru\CloudTargets'
|
126
|
-
access = Win32::Registry::KEY_READ
|
127
125
|
reg_targets = []
|
128
126
|
|
129
|
-
Win32::Registry::HKEY_CURRENT_USER.open(keyname
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
127
|
+
Win32::Registry::HKEY_CURRENT_USER.open(keyname).each_value do |subkey, type, data|
|
128
|
+
if data[0] == 'isUhuruApi'
|
129
|
+
reg_targets << {:uhuruApi => true,
|
130
|
+
:target_url => data[2],
|
131
|
+
:auth_token => data[3],
|
132
|
+
:cloud_team => data[4],
|
133
|
+
# todo: get the cloud_domain
|
134
|
+
:cloud_domain => data[6],
|
135
|
+
:desc => "Uhuru AppCloud [#{data[2]}] / #{data[5]}"
|
136
|
+
}
|
137
|
+
end
|
138
|
+
if data[0] == 'notUhuruApi'
|
139
|
+
reg_targets << {:uhuruApi => false,
|
140
|
+
:target_url => data[2],
|
141
|
+
:auth_token => data[4],
|
142
|
+
:desc => "Cloud Foundry [#{data[2]}] / #{data[3]}"
|
143
|
+
}
|
144
|
+
end
|
145
|
+
end
|
146
|
+
reg_targets
|
147
|
+
end
|
149
148
|
|
150
|
-
|
149
|
+
def import_from_registry
|
150
|
+
reg_targets = []
|
151
|
+
begin
|
152
|
+
require 'win32/registry'
|
153
|
+
reg_targets = load_registry_targets
|
154
|
+
rescue LoadError
|
155
|
+
err "Unable not import data from Windows Registry"
|
156
|
+
exit 1
|
157
|
+
rescue
|
158
|
+
err "Unable not import data from Windows Registry"
|
159
|
+
exit 1
|
160
|
+
end
|
161
|
+
|
162
|
+
if reg_targets.length == 0
|
163
|
+
display "No targets to import"
|
164
|
+
exit
|
151
165
|
end
|
152
166
|
|
153
167
|
selected_target_desc = ask(
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,263 +1,211 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmcu
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.17
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 0.3.17.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- VMware; Uhurusoftware
|
7
|
+
authors:
|
8
|
+
- VMware; Uhurusoftware
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
|
-
requirements:
|
135
|
-
- - ~>
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: 2.1.0
|
138
|
-
- !ruby/object:Gem::Dependency
|
139
|
-
name: rake
|
140
|
-
requirement: !ruby/object:Gem::Requirement
|
141
|
-
none: false
|
142
|
-
requirements:
|
143
|
-
- - ! '>='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
|
-
requirements:
|
151
|
-
- - ! '>='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: rspec
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
none: false
|
158
|
-
requirements:
|
159
|
-
- - ~>
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: 1.3.0
|
162
|
-
type: :development
|
163
|
-
prerelease: false
|
164
|
-
version_requirements: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
|
-
requirements:
|
167
|
-
- - ~>
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: 1.3.0
|
170
|
-
- !ruby/object:Gem::Dependency
|
171
|
-
name: webmock
|
172
|
-
requirement: !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
|
-
requirements:
|
175
|
-
- - ~>
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: 1.5.0
|
178
|
-
type: :development
|
179
|
-
prerelease: false
|
180
|
-
version_requirements: !ruby/object:Gem::Requirement
|
181
|
-
none: false
|
182
|
-
requirements:
|
183
|
-
- - ~>
|
184
|
-
- !ruby/object:Gem::Version
|
185
|
-
version: 1.5.0
|
186
|
-
description: Client library and CLI that provides access to the VMware Cloud Application
|
187
|
-
Platform + support for Uhuru AppCloud.
|
12
|
+
|
13
|
+
date: 2012-05-09 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: json_pure
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.5.1
|
24
|
+
- - <
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.7.0
|
27
|
+
type: :runtime
|
28
|
+
version_requirements: *id001
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rubyzip
|
31
|
+
prerelease: false
|
32
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.9.4
|
38
|
+
type: :runtime
|
39
|
+
version_requirements: *id002
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: rest-client
|
42
|
+
prerelease: false
|
43
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.6.1
|
49
|
+
- - <
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: 1.7.0
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: *id003
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: terminal-table
|
56
|
+
prerelease: false
|
57
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.4.2
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: *id004
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: interact
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ~>
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 0.4.0
|
74
|
+
type: :runtime
|
75
|
+
version_requirements: *id005
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: addressable
|
78
|
+
prerelease: false
|
79
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ~>
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 2.2.6
|
85
|
+
type: :runtime
|
86
|
+
version_requirements: *id006
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: uuidtools
|
89
|
+
prerelease: false
|
90
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
91
|
+
none: false
|
92
|
+
requirements:
|
93
|
+
- - ~>
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 2.1.0
|
96
|
+
type: :runtime
|
97
|
+
version_requirements: *id007
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rake
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: "0"
|
107
|
+
type: :development
|
108
|
+
version_requirements: *id008
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: rspec
|
111
|
+
prerelease: false
|
112
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.3.0
|
118
|
+
type: :development
|
119
|
+
version_requirements: *id009
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: webmock
|
122
|
+
prerelease: false
|
123
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
125
|
+
requirements:
|
126
|
+
- - ~>
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 1.5.0
|
129
|
+
type: :development
|
130
|
+
version_requirements: *id010
|
131
|
+
description: Client library and CLI that provides access to the VMware Cloud Application Platform + support for Uhuru AppCloud.
|
188
132
|
email: support@uhurusoftware.com
|
189
|
-
executables:
|
190
|
-
- vmcu
|
133
|
+
executables:
|
134
|
+
- vmcu
|
191
135
|
extensions: []
|
192
|
-
|
193
|
-
|
194
|
-
-
|
195
|
-
|
196
|
-
|
197
|
-
-
|
198
|
-
-
|
199
|
-
-
|
200
|
-
- config/
|
201
|
-
- config/micro/
|
202
|
-
- config/micro/
|
203
|
-
-
|
204
|
-
- lib/cli
|
205
|
-
- lib/
|
206
|
-
- lib/cli/
|
207
|
-
- lib/cli/
|
208
|
-
- lib/cli/
|
209
|
-
- lib/cli/
|
210
|
-
- lib/cli/
|
211
|
-
- lib/cli/
|
212
|
-
- lib/cli/
|
213
|
-
- lib/cli/
|
214
|
-
- lib/cli/
|
215
|
-
- lib/cli/
|
216
|
-
- lib/cli/
|
217
|
-
- lib/cli/
|
218
|
-
- lib/cli/
|
219
|
-
- lib/cli/
|
220
|
-
- lib/cli/
|
221
|
-
- lib/cli/
|
222
|
-
- lib/cli/
|
223
|
-
- lib/cli.rb
|
224
|
-
- lib/
|
225
|
-
- lib/
|
226
|
-
- lib/vmc/
|
227
|
-
- lib/vmc/
|
228
|
-
- lib/vmc/micro
|
229
|
-
- lib/vmc/micro/
|
230
|
-
- lib/vmc/micro/switcher/
|
231
|
-
- lib/vmc/micro/
|
232
|
-
- lib/vmc/micro.rb
|
233
|
-
- lib/vmc.rb
|
234
|
-
-
|
235
|
-
- caldecott_helper/Gemfile
|
236
|
-
- caldecott_helper/
|
237
|
-
-
|
136
|
+
|
137
|
+
extra_rdoc_files:
|
138
|
+
- README.md
|
139
|
+
- LICENSE
|
140
|
+
files:
|
141
|
+
- LICENSE
|
142
|
+
- README.md
|
143
|
+
- Rakefile
|
144
|
+
- config/clients.yml
|
145
|
+
- config/micro/offline.conf
|
146
|
+
- config/micro/paths.yml
|
147
|
+
- config/micro/refresh_ip.rb
|
148
|
+
- lib/cli.rb
|
149
|
+
- lib/vmc.rb
|
150
|
+
- lib/cli/config.rb
|
151
|
+
- lib/cli/console_helper.rb
|
152
|
+
- lib/cli/core_ext.rb
|
153
|
+
- lib/cli/errors.rb
|
154
|
+
- lib/cli/frameworks.rb
|
155
|
+
- lib/cli/manifest_helper.rb
|
156
|
+
- lib/cli/runner.rb
|
157
|
+
- lib/cli/services_helper.rb
|
158
|
+
- lib/cli/tunnel_helper.rb
|
159
|
+
- lib/cli/usage.rb
|
160
|
+
- lib/cli/version.rb
|
161
|
+
- lib/cli/zip_util.rb
|
162
|
+
- lib/cli/commands/admin.rb
|
163
|
+
- lib/cli/commands/apps.rb
|
164
|
+
- lib/cli/commands/base.rb
|
165
|
+
- lib/cli/commands/manifest.rb
|
166
|
+
- lib/cli/commands/micro.rb
|
167
|
+
- lib/cli/commands/misc.rb
|
168
|
+
- lib/cli/commands/services.rb
|
169
|
+
- lib/cli/commands/user.rb
|
170
|
+
- lib/vmc/client.rb
|
171
|
+
- lib/vmc/const.rb
|
172
|
+
- lib/vmc/micro.rb
|
173
|
+
- lib/vmc/micro/vmrun.rb
|
174
|
+
- lib/vmc/micro/switcher/base.rb
|
175
|
+
- lib/vmc/micro/switcher/darwin.rb
|
176
|
+
- lib/vmc/micro/switcher/dummy.rb
|
177
|
+
- lib/vmc/micro/switcher/linux.rb
|
178
|
+
- lib/vmc/micro/switcher/windows.rb
|
179
|
+
- caldecott_helper/Gemfile
|
180
|
+
- caldecott_helper/Gemfile.lock
|
181
|
+
- caldecott_helper/server.rb
|
182
|
+
- bin/vmcu
|
238
183
|
homepage: http://www.uhurusoftware.com
|
239
184
|
licenses: []
|
185
|
+
|
240
186
|
post_install_message:
|
241
187
|
rdoc_options: []
|
242
|
-
|
243
|
-
|
244
|
-
|
188
|
+
|
189
|
+
require_paths:
|
190
|
+
- lib
|
191
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
245
192
|
none: false
|
246
|
-
requirements:
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: "0"
|
197
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
198
|
none: false
|
252
|
-
requirements:
|
253
|
-
|
254
|
-
|
255
|
-
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: "0"
|
256
203
|
requirements: []
|
204
|
+
|
257
205
|
rubyforge_project:
|
258
206
|
rubygems_version: 1.8.24
|
259
207
|
signing_key:
|
260
208
|
specification_version: 3
|
261
|
-
summary: Client library and CLI that provides access to the VMware Cloud Application
|
262
|
-
Platform + support for Uhuru AppCloud.
|
209
|
+
summary: Client library and CLI that provides access to the VMware Cloud Application Platform + support for Uhuru AppCloud.
|
263
210
|
test_files: []
|
211
|
+
|