cf 0.6.1.rc14 → 0.6.1.rc15
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.
|
@@ -31,6 +31,8 @@ module CF::Organization
|
|
|
31
31
|
line
|
|
32
32
|
line c(boom.description, :bad)
|
|
33
33
|
line c("If you want to delete the organization along with all dependent objects, rerun the command with the #{b("'--recursive'")} flag.", :bad)
|
|
34
|
+
exit_status(1)
|
|
35
|
+
return
|
|
34
36
|
end
|
|
35
37
|
|
|
36
38
|
if client.organizations.size == 1
|
data/lib/cf/cli/space/delete.rb
CHANGED
|
@@ -34,7 +34,7 @@ module CF::Space
|
|
|
34
34
|
space.delete!
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
|
-
rescue CFoundry::
|
|
37
|
+
rescue CFoundry::AssociationNotEmpty => boom
|
|
38
38
|
line
|
|
39
39
|
line c(boom.description, :bad)
|
|
40
40
|
line c("If you want to delete the space along with all dependent objects, rerun the command with the #{b("'--recursive'")} flag.", :bad)
|
data/lib/cf/version.rb
CHANGED
|
@@ -75,6 +75,10 @@ describe CF::Organization::Delete do
|
|
|
75
75
|
it "informs the user of how to recursively delete" do
|
|
76
76
|
expect(output).to say "If you want to delete the organization along with all dependent objects, rerun the command with the '--recursive' flag."
|
|
77
77
|
end
|
|
78
|
+
|
|
79
|
+
it "returns a non-zero exit code" do
|
|
80
|
+
@status.should_not == 0
|
|
81
|
+
end
|
|
78
82
|
end
|
|
79
83
|
|
|
80
84
|
context "when deleting with --recursive" do
|
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: 0.6.1.
|
|
4
|
+
version: 0.6.1.rc15
|
|
5
5
|
prerelease: 6
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -531,7 +531,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
531
531
|
version: '0'
|
|
532
532
|
segments:
|
|
533
533
|
- 0
|
|
534
|
-
hash:
|
|
534
|
+
hash: 2152463802947033801
|
|
535
535
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
536
536
|
none: false
|
|
537
537
|
requirements:
|