vmc 0.4.0.beta.27 → 0.4.0.beta.28
Sign up to get free protection for your applications and to get access to all the features.
- data/vmc-ng/lib/vmc/cli/app.rb +5 -1
- data/vmc-ng/lib/vmc/cli/space.rb +16 -8
- data/vmc-ng/lib/vmc/version.rb +1 -1
- metadata +7 -7
data/vmc-ng/lib/vmc/cli/app.rb
CHANGED
data/vmc-ng/lib/vmc/cli/space.rb
CHANGED
@@ -35,7 +35,7 @@ module VMC
|
|
35
35
|
input :full, :type => :boolean,
|
36
36
|
:desc => "Show full information for apps, service instances, etc."
|
37
37
|
def space(input)
|
38
|
-
org = input[:
|
38
|
+
org = input[:organization]
|
39
39
|
space = input[:space, org]
|
40
40
|
|
41
41
|
if quiet?
|
@@ -108,6 +108,7 @@ module VMC
|
|
108
108
|
:desc => "Parent organization") {
|
109
109
|
client.current_organization
|
110
110
|
}
|
111
|
+
input :target, :alias => "-t", :type => :boolean
|
111
112
|
input :manager, :type => :boolean, :default => true,
|
112
113
|
:desc => "Add current user as manager"
|
113
114
|
input :developer, :type => :boolean, :default => true,
|
@@ -140,6 +141,11 @@ module VMC
|
|
140
141
|
space.add_auditor client.current_user
|
141
142
|
end
|
142
143
|
end
|
144
|
+
|
145
|
+
if input[:target]
|
146
|
+
invoke :target, :organization => space.organization,
|
147
|
+
:space => space
|
148
|
+
end
|
143
149
|
end
|
144
150
|
|
145
151
|
|
@@ -172,14 +178,16 @@ module VMC
|
|
172
178
|
apps = space.apps
|
173
179
|
instances = space.service_instances
|
174
180
|
|
175
|
-
unless
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
+
unless apps.empty? && instances.empty?
|
182
|
+
unless force?
|
183
|
+
line "This space is not empty!"
|
184
|
+
line
|
185
|
+
line "apps: #{name_list(apps)}"
|
186
|
+
line "service instances: #{name_list(instances)}"
|
187
|
+
line
|
181
188
|
|
182
|
-
|
189
|
+
return unless input[:recursive]
|
190
|
+
end
|
183
191
|
|
184
192
|
apps.each do |a|
|
185
193
|
invoke :delete, :app => a, :really => true
|
data/vmc-ng/lib/vmc/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196443
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.4.0.beta.
|
11
|
+
- 28
|
12
|
+
version: 0.4.0.beta.28
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- VMware
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-07-
|
20
|
+
date: 2012-07-29 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: json_pure
|
@@ -249,12 +249,12 @@ dependencies:
|
|
249
249
|
requirements:
|
250
250
|
- - ~>
|
251
251
|
- !ruby/object:Gem::Version
|
252
|
-
hash:
|
252
|
+
hash: 13
|
253
253
|
segments:
|
254
254
|
- 0
|
255
255
|
- 3
|
256
|
-
-
|
257
|
-
version: 0.3.
|
256
|
+
- 15
|
257
|
+
version: 0.3.15
|
258
258
|
type: :runtime
|
259
259
|
version_requirements: *id014
|
260
260
|
- !ruby/object:Gem::Dependency
|