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 +4 -4
- data/lib/cf/cli/organization/delete.rb +6 -7
- data/lib/cf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c2b1eb6b84d9add187cc00219b8ec843b51545c
|
4
|
+
data.tar.gz: 2c5322746b259c0b6dc416f212cfd034d7455033
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
24
|
+
@orgs.delete(org) if deleted
|
26
25
|
end
|
27
26
|
|
28
|
-
if
|
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