cf 4.1.5.rc4 → 4.1.5.rc5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eeeab88cd5d4fe615841147f7951e324a24cba11
4
- data.tar.gz: 9974b6699cd3dc29a66774fd7cc782741d41bc25
3
+ metadata.gz: 6c2b1eb6b84d9add187cc00219b8ec843b51545c
4
+ data.tar.gz: 2c5322746b259c0b6dc416f212cfd034d7455033
5
5
  SHA512:
6
- metadata.gz: 66e8bb42bfdf140307ad90600b6b58ffa91ff3bee947ed34ea7c7bb6d1d1287580e0239288a9f698ba702957a09d2d49f6cd7928f923c03d41e91e8abd1eeaa8
7
- data.tar.gz: a91890e75b606f9826e3848b6c49f50d94d8c0232c3cad7f256e7fdc3a9bfd93981325d7462a8341d27ab38be36900a19e8540bb1c3497f36eb0692838458e6b
6
+ metadata.gz: 5869ec98f7b92c27b679fc1b7669c17533b94cffaa83250611272d30d5481a409e82b21726f2620884866522eb9260c88bb7c5feda8455d9043153cc2e67bef0
7
+ data.tar.gz: 77d605881f8a055fcabb417b36bfc8da0308d40942221f2eac5dccacea69daf0922ba95f05e5a863eff7c3fc65d18787fe06e6c90edf54cc3465902b4257d99c
@@ -18,14 +18,13 @@ module CF::Organization
18
18
  return unless input[:really, org]
19
19
 
20
20
  is_current = org == client.current_organization
21
- remote_organizations = client.organizations(:depth => 0)
22
-
21
+ @orgs ||= client.organizations(:depth => 0)
23
22
  with_progress("Deleting organization #{c(org.name, :name)}") do
24
23
  deleted = org.delete!(:recursive => !!input[:recursive])
25
- remote_organizations.delete(org) if deleted
24
+ @orgs.delete(org) if deleted
26
25
  end
27
26
 
28
- if remote_organizations.empty?
27
+ if @orgs.empty?
29
28
  return unless input[:warn]
30
29
 
31
30
  line
@@ -45,10 +44,10 @@ module CF::Organization
45
44
  private
46
45
 
47
46
  def ask_organization
48
- orgs = client.organizations(:depth => 0)
49
- fail "No organizations." if orgs.empty?
47
+ @orgs = client.organizations(:depth => 0)
48
+ fail "No organizations." if @orgs.empty?
50
49
 
51
- ask("Which organization", :choices => orgs.sort_by(&:name),
50
+ ask("Which organization", :choices => @orgs.sort_by(&:name),
52
51
  :display => proc(&:name))
53
52
  end
54
53
 
data/lib/cf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "4.1.5.rc4".freeze
2
+ VERSION = "4.1.5.rc5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.5.rc4
4
+ version: 4.1.5.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud Foundry Team