cf 4.1.5.rc1 → 4.1.5.rc2
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module CF::Organization
|
|
9
9
|
def orgs
|
10
10
|
orgs =
|
11
11
|
with_progress("Getting organizations") do
|
12
|
-
client.organizations.sort_by(&:name)
|
12
|
+
client.organizations(:depth => 0).sort_by(&:name)
|
13
13
|
end
|
14
14
|
|
15
15
|
return if orgs.empty?
|
@@ -22,13 +22,8 @@ module CF::Organization
|
|
22
22
|
end
|
23
23
|
else
|
24
24
|
table(
|
25
|
-
%w{name
|
26
|
-
orgs.collect { |o|
|
27
|
-
[ c(o.name, :name),
|
28
|
-
name_list(o.spaces),
|
29
|
-
name_list(o.domains)
|
30
|
-
]
|
31
|
-
})
|
25
|
+
%w{name},
|
26
|
+
orgs.collect { |o| [c(o.name, :name)] })
|
32
27
|
end
|
33
28
|
end
|
34
29
|
end
|
data/lib/cf/version.rb
CHANGED
@@ -103,9 +103,9 @@ module CF
|
|
103
103
|
stdout.readline
|
104
104
|
stdout.readline
|
105
105
|
|
106
|
-
expect(stdout.readline).to match /name
|
106
|
+
expect(stdout.readline).to match /name/
|
107
107
|
organizations.sort_by(&:name).each do |org|
|
108
|
-
expect(stdout.readline).to match /#{org.name}
|
108
|
+
expect(stdout.readline).to match /#{org.name}/
|
109
109
|
end
|
110
110
|
expect(stdout).to be_eof
|
111
111
|
end
|
@@ -2,6 +2,8 @@ FactoryGirl.define do
|
|
2
2
|
factory :organization, :class => CFoundry::V2::Organization do
|
3
3
|
sequence(:guid) { |n| "organization-guid-#{n}" }
|
4
4
|
sequence(:name) { |n| "organization-name-#{n}" }
|
5
|
+
users { [build(:user)] }
|
6
|
+
spaces { [build(:space)] }
|
5
7
|
|
6
8
|
ignore do
|
7
9
|
client { FactoryGirl.build(:client) }
|
@@ -9,4 +11,4 @@ FactoryGirl.define do
|
|
9
11
|
|
10
12
|
initialize_with { new(guid, client) }
|
11
13
|
end
|
12
|
-
end
|
14
|
+
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.
|
4
|
+
version: 4.1.5.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
@@ -617,7 +617,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
617
617
|
version: '0'
|
618
618
|
segments:
|
619
619
|
- 0
|
620
|
-
hash:
|
620
|
+
hash: 1206771960516863550
|
621
621
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
622
622
|
none: false
|
623
623
|
requirements:
|