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.
@@ -79,8 +79,12 @@ module VMC
79
79
 
80
80
  line unless quiet?
81
81
 
82
+ apps.reject! do |a|
83
+ !app_matches(a, input)
84
+ end
85
+
82
86
  spaced(apps) do |a|
83
- display_app(a) if app_matches(a, input)
87
+ display_app(a)
84
88
  end
85
89
  end
86
90
 
@@ -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[:org]
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 force? || apps.empty? && instances.empty?
176
- line "This space is not empty!"
177
- line
178
- line "apps: #{name_list(apps)}"
179
- line "service instances: #{name_list(instances)}"
180
- line
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
- return unless input[:recursive]
189
+ return unless input[:recursive]
190
+ end
183
191
 
184
192
  apps.each do |a|
185
193
  invoke :delete, :app => a, :really => true
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.27"
2
+ VERSION = "0.4.0.beta.28"
3
3
  end
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: 62196437
4
+ hash: 62196443
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 27
12
- version: 0.4.0.beta.27
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-26 00:00:00 Z
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: 9
252
+ hash: 13
253
253
  segments:
254
254
  - 0
255
255
  - 3
256
- - 13
257
- version: 0.3.13
256
+ - 15
257
+ version: 0.3.15
258
258
  type: :runtime
259
259
  version_requirements: *id014
260
260
  - !ruby/object:Gem::Dependency