cf 5.0.0.rc3 → 5.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NWNjYmY2YzgzNDMyM2FmZDIyMmI2NDk4YzcxZWI1NmNmNTZmMzY0ZQ==
5
+ data.tar.gz: !binary |-
6
+ ZTlmOWVjYmJlMDdmNzQwZTk2ZGNjYWYxZTQ2MTZkZDNmYzg1NTdiYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NWVhNmNiZmM4M2FiMzcxYmQ3NGY1ZDRmMzQ3MWRiYTQ5YmJhOWJmMTZjNTRi
10
+ ZDA3ZTI3NDZmM2YwYmE4NWQ1Y2ExZWYwMGEwMmJiMWM5Y2MwNTNmMzAwNTRl
11
+ YjQ0NjEyZjIzZDVhOGQ5MjkxNmM3ZWM3M2Y5MGYyYmVkNGE1MGM=
12
+ data.tar.gz: !binary |-
13
+ MGIxOTIyNjBjN2EyOTk3NzkwMmZjNzI3ZGEyNWUwMzkzYmQzYzdkOTJlZTEy
14
+ NTE0ZTA2ZWExZTE5OTM4YmU1NjhhOTIyMDFlNjM1NWM4NjZmODBmMDM4MjQ4
15
+ OGE3NDk1YjViOGY4M2NkY2Q4NTdmMjVmMWQ5MGQ3NGUxNmE5ZTk=
data/bin/cf CHANGED
@@ -9,7 +9,7 @@ require "cf/plugin"
9
9
  $stdout.sync = true
10
10
 
11
11
  CF::Plugin.load_all
12
- if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("1.9.3")
12
+ if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new("1.9.3")
13
13
  warn "ERROR: \033[31mRuby version #{RUBY_VERSION} is not supported.\033[0m Please install 1.9.3 or later. (See http://docs.cloudfoundry.com/docs/common/install_ruby.html for more information)"
14
14
  exit 1
15
15
  end
@@ -9,11 +9,11 @@ module CFAdmin::ServiceBroker
9
9
  desc "Add a Service Broker."
10
10
  group :admin
11
11
  input :name, :argument => :optional,
12
- :desc => "broker name"
12
+ :desc => "Broker name"
13
13
  input :url,
14
- :desc => "broker url"
14
+ :desc => "Broker URL"
15
15
  input :token,
16
- :desc => "broker token"
16
+ :desc => "Broker token"
17
17
 
18
18
  def add_service_broker
19
19
  broker = client.service_broker
@@ -32,15 +32,15 @@ module CFAdmin::ServiceBroker
32
32
 
33
33
  private
34
34
  def ask_name
35
- ask("name")
35
+ ask("Name")
36
36
  end
37
37
 
38
38
  def ask_url
39
- ask("url")
39
+ ask("URL")
40
40
  end
41
41
 
42
42
  def ask_token
43
- ask("token")
43
+ ask("Token")
44
44
  end
45
45
  end
46
46
  end
@@ -9,13 +9,17 @@ module CF::Organization
9
9
  :alias => "-t", :default => true
10
10
  input :add_self, :desc => "Add yourself to the organization",
11
11
  :default => true
12
+ input :find_if_exists, :desc => "Use an existing organization if one already exists with the given name", :default => false
12
13
  def create_org
13
14
  org = client.organization
14
15
  org.name = input[:name]
15
16
  org.users = [client.current_user] if input[:add_self]
16
17
 
17
- with_progress("Creating organization #{c(org.name, :name)}") do
18
- org.create!
18
+ begin
19
+ with_progress("Creating organization #{c(org.name, :name)}") { org.create! }
20
+ rescue CFoundry::OrganizationNameTaken
21
+ raise unless input[:find_if_exists]
22
+ org = client.organization_by_name(input[:name])
19
23
  end
20
24
 
21
25
  if input[:target]
@@ -11,7 +11,7 @@ module CF
11
11
 
12
12
  def populate_and_save!
13
13
  obj = get_object
14
- info[type] = obj.guid
14
+ info[type] = obj.guid unless obj.nil?
15
15
  save_target_info(info)
16
16
  invalidate_client
17
17
 
@@ -48,9 +48,7 @@ module CF
48
48
  object_choices = choices
49
49
 
50
50
  if object_choices.empty?
51
- raise CF::UserFriendlyError.new(
52
- "There are no #{type}s. You may want to create one with #{c("create-#{type == :organization ? "org" : type}", :good)}."
53
- )
51
+ with_progress("There are no #{type}s. You may want to create one with #{c("create-#{type == :organization ? "org" : type}", :good)}.") {}
54
52
  elsif object_choices.is_a?(String)
55
53
  raise CF::UserFriendlyError.new(object_choices)
56
54
  elsif object_choices.size == 1 && !input.interactive?(type)
@@ -15,13 +15,19 @@ module CF
15
15
  input :manager, :desc => "Add yourself as manager", :default => true
16
16
  input :developer, :desc => "Add yourself as developer", :default => true
17
17
  input :auditor, :desc => "Add yourself as auditor", :default => false
18
-
18
+ input :find_if_exists, :desc => "Use an existing space if one already exists with the given name", :default => false
19
19
  def create_space
20
20
  space = client.space
21
21
  space.organization = org
22
22
  space.name = input[:name]
23
23
 
24
- with_progress("Creating space #{c(space.name, :name)}") { space.create! }
24
+ begin
25
+ with_progress("Creating space #{c(space.name, :name)}") { space.create! }
26
+ rescue CFoundry::SpaceNameTaken
27
+ raise unless input[:find_if_exists]
28
+ space = client.space_by_name(input[:name])
29
+ already_exists = true
30
+ end
25
31
 
26
32
  if input[:manager]
27
33
  with_progress("Adding you as a manager") { space.add_manager client.current_user }
@@ -36,11 +42,17 @@ module CF
36
42
  end
37
43
 
38
44
  if input[:target]
39
- invoke :target, :organization => space.organization, :space => space
45
+ invoke :target, :organization => org, :space => space
40
46
  else
41
- line c("Space created!", :good)
42
- line
43
- line "#{b("cf switch-space #{space.name}")} # targets new space"
47
+ if already_exists
48
+ line c("Space already exists!", :good)
49
+ line
50
+ line "#{b("cf switch-space #{space.name}")} # targets existing space"
51
+ else
52
+ line c("Space created!", :good)
53
+ line
54
+ line "#{b("cf switch-space #{space.name}")} # targets new space"
55
+ end
44
56
  end
45
57
  end
46
58
 
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "5.0.0.rc3".freeze
2
+ VERSION = "5.0.0.rc4".freeze
3
3
  end
@@ -10,7 +10,7 @@ namespace :gem do
10
10
  sh! "git add lib/cf/version.rb"
11
11
 
12
12
  print_with_purpose "Bumping to version #{gem_version}"
13
- generate_release_notes(old_version)
13
+ #generate_release_notes(old_version)
14
14
  sh!("git commit -m 'Bumping to version #{gem_version}.'")
15
15
  sh!("git push")
16
16
  sh!("gem release --tag")
@@ -29,8 +29,8 @@ describe CFAdmin::ServiceBroker::Add do
29
29
  it "creates a service broker when only the name is provided" do
30
30
  service_broker.stub(:create!)
31
31
 
32
- stub_ask("url").and_return("http://example.com")
33
- stub_ask("token").and_return("token")
32
+ stub_ask("URL").and_return("http://example.com")
33
+ stub_ask("Token").and_return("token")
34
34
 
35
35
  cf %W[add-service-broker cf-mysql]
36
36
 
@@ -44,9 +44,9 @@ describe CFAdmin::ServiceBroker::Add do
44
44
  it "creates a service broker when no arguments are provided" do
45
45
  service_broker.stub(:create!)
46
46
 
47
- stub_ask("name").and_return("cf-mysql")
48
- stub_ask("url").and_return("http://example.com")
49
- stub_ask("token").and_return("token")
47
+ stub_ask("Name").and_return("cf-mysql")
48
+ stub_ask("URL").and_return("http://example.com")
49
+ stub_ask("Token").and_return("token")
50
50
 
51
51
  cf %W[add-service-broker]
52
52
 
@@ -0,0 +1,121 @@
1
+ require "spec_helper"
2
+
3
+ module CF
4
+ module Organization
5
+ describe Create do
6
+ let(:client) { build(:client) }
7
+ before { stub_client_and_precondition }
8
+
9
+ describe "metadata" do
10
+ subject(:command) { Mothership.commands[:create_org] }
11
+
12
+ its(:description) { should == "Create an organization" }
13
+ it { expect(Mothership::Help.group(:organizations)).to include(command) }
14
+ its(:arguments) { should == [{type: :optional, value: nil, name: :name}] }
15
+
16
+ include_examples "inputs must have descriptions"
17
+ end
18
+
19
+ describe "running the command" do
20
+ let(:new_org) { build(:organization) }
21
+ let(:current_user) { build(:user) }
22
+
23
+ before do
24
+ client.stub(organization: new_org)
25
+ client.stub(current_user: current_user)
26
+
27
+ @command_args = ["create-org", new_org.name]
28
+ end
29
+
30
+ context "when the organization already exists" do
31
+ let(:existing_org) { build(:organization, name: new_org.name) }
32
+
33
+ before do
34
+ new_org.stub(:create!).and_raise(CFoundry::OrganizationNameTaken)
35
+ end
36
+
37
+ context "when --find-if-exists is given" do
38
+ before { @command_args << "--find-if-exists" }
39
+ before { client.stub(:organization_by_name).with(new_org.name).and_return(existing_org) }
40
+
41
+ context "when --target is given" do
42
+ before { @command_args << "--target" }
43
+
44
+ it "switches them to the existing organization" do
45
+ mock_invoke :target, organization: existing_org
46
+ cf @command_args
47
+ end
48
+ end
49
+
50
+ context "when --target is NOT given" do
51
+ it "does not actively switch to the existing organization" do
52
+ dont_allow_invoke :target
53
+ cf @command_args
54
+ end
55
+ end
56
+ end
57
+
58
+ context "when --find-if-exists is NOT given" do
59
+ before { @command_args << "--target" }
60
+
61
+ context "when --target is given" do
62
+ it "raises an exception" do
63
+ expect { cf @command_args }.to raise_error(CFoundry::OrganizationNameTaken)
64
+ end
65
+ end
66
+
67
+ context "when --target is NOT given" do
68
+ it "raises an exception" do
69
+ expect { cf @command_args }.to raise_error(CFoundry::OrganizationNameTaken)
70
+ end
71
+ end
72
+ end
73
+ end
74
+
75
+ context "when the organization DOES NOT already exist" do
76
+ before do
77
+ new_org.stub(:create!)
78
+ end
79
+
80
+ context "when --find-if-exists is given" do
81
+ before { @command_args << "--find-if-exists" }
82
+
83
+ context "when --target is given" do
84
+ before { @command_args << "--target" }
85
+
86
+ it "switches them to the new organization" do
87
+ mock_invoke :target, organization: new_org
88
+ cf @command_args
89
+ end
90
+ end
91
+
92
+ context "when --target is NOT given" do
93
+ it "does not actively switch to the existing organization" do
94
+ dont_allow_invoke :target
95
+ cf @command_args
96
+ end
97
+ end
98
+ end
99
+
100
+ context "when --find-if-exists is NOT given" do
101
+ context "when --target is given" do
102
+ before { @command_args << "--target" }
103
+
104
+ it "switches them to the new organization" do
105
+ mock_invoke :target, organization: new_org
106
+ cf @command_args
107
+ end
108
+ end
109
+
110
+ context "when --target is NOT given" do
111
+ it "does not actively switch to the existing organization" do
112
+ dont_allow_invoke :target
113
+ cf @command_args
114
+ end
115
+ end
116
+ end
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
@@ -155,8 +155,9 @@ module CF
155
155
  write_token_file({})
156
156
  end
157
157
 
158
- it "tells the user to create one by raising a UserFriendlyError" do
159
- expect { execute_populate_and_save }.to raise_error(CF::UserFriendlyError, "There are no organizations. You may want to create one with create-org.")
158
+ it "warns the user they should create one" do
159
+ execute_populate_and_save
160
+ expect(output).to say("There are no organizations. You may want to create one with create-org.")
160
161
  end
161
162
  end
162
163
 
@@ -143,8 +143,9 @@ module CF
143
143
  organization.stub(:spaces).and_return([])
144
144
  end
145
145
 
146
- it "tells the user to create one by raising a UserFriendlyError" do
147
- expect { execute_populate_and_save }.to raise_error(CF::UserFriendlyError, /There are no spaces/)
146
+ it "warns the user they should create one" do
147
+ execute_populate_and_save
148
+ expect(output).to say("There are no spaces. You may want to create one with create-space.")
148
149
  end
149
150
  end
150
151
  end
@@ -21,8 +21,8 @@ module CF
21
21
  subject { command.arguments }
22
22
  it "has the correct argument order" do
23
23
  should eq([
24
- {:type => :optional, :value => nil, :name => :name},
25
- {:type => :optional, :value => nil, :name => :organization}
24
+ {type: :optional, value: nil, name: :name},
25
+ {type: :optional, value: nil, name: :organization}
26
26
  ])
27
27
  end
28
28
  end
@@ -30,33 +30,112 @@ module CF
30
30
 
31
31
  describe "running the command" do
32
32
  let(:new_space) { build(:space) }
33
- let(:organization) { build(:organization, :spaces => [new_space]) }
34
33
 
35
34
  before do
36
- client.stub(:space).and_return(new_space)
37
- new_space.stub(:create!)
38
- new_space.stub(:add_manager)
39
- new_space.stub(:add_developer)
40
- new_space.stub(:add_auditor)
41
- CF::Populators::Organization.any_instance.stub(:populate_and_save!).and_return(organization)
42
- CF::Populators::Organization.any_instance.stub(:choices).and_return([organization])
35
+ client.stub(space: new_space)
36
+ CF::Populators::Organization.any_instance.stub(populate_and_save!: organization)
37
+
38
+ @command_args = ["create-space", new_space.name]
43
39
  end
44
40
 
45
- context "when --target is given" do
46
- subject { cf %W[create-space #{new_space.name} --target] }
41
+ context "when the space already exists" do
42
+ let(:existing_space) { build(:space, name: new_space.name) }
43
+ let(:organization) { build(:organization, spaces: [existing_space]) }
44
+ let(:current_user) { build(:user) }
45
+
46
+ before do
47
+ client.stub(current_user: current_user)
48
+ new_space.stub(:create!).and_raise(CFoundry::SpaceNameTaken)
49
+ end
50
+
51
+ context "when --find-if-exists is given" do
52
+ before do
53
+ @command_args << "--find-if-exists"
54
+ client.stub(:space_by_name).with(new_space.name).and_return(existing_space)
55
+ existing_space.stub(:add_manager).with(current_user)
56
+ existing_space.stub(:add_developer).with(current_user)
57
+ end
58
+
59
+ context "when --target is given" do
60
+ before { @command_args << "--target" }
61
+
62
+ it "switches them to the existing space" do
63
+ mock_invoke :target, organization: organization, space: existing_space
64
+ cf @command_args
65
+ end
66
+ end
67
+
68
+ context "when --target is NOT given" do
69
+ it "tells the user how they can switch to the existing space" do
70
+ cf @command_args
71
+ expect(output).to say("Space already exists!\n\ncf switch-space #{existing_space.name} # targets existing space")
72
+ end
73
+ end
74
+ end
75
+
76
+ context "when --find-if-exists is NOT given" do
77
+ before { @command_args << "--target" }
47
78
 
48
- it "switches them to the new space" do
49
- mock_invoke :target, :organization => organization, :space => new_space
50
- subject
79
+ context "when --target is given" do
80
+ it "raises an exception" do
81
+ expect { cf @command_args }.to raise_error(CFoundry::SpaceNameTaken)
82
+ end
83
+ end
84
+
85
+ context "when --target is NOT given" do
86
+ it "raises an exception" do
87
+ expect { cf @command_args }.to raise_error(CFoundry::SpaceNameTaken)
88
+ end
89
+ end
51
90
  end
52
91
  end
53
92
 
54
- context "when --target is NOT given" do
55
- subject { cf %W[create-space #{new_space.name}] }
93
+ context "when the space DOES NOT already exist" do
94
+ let(:organization) { build(:organization, spaces: []) }
95
+
96
+ before do
97
+ new_space.stub(:create!)
98
+ new_space.stub(:add_manager)
99
+ new_space.stub(:add_developer)
100
+ new_space.stub(:add_auditor)
101
+ end
102
+
103
+ context "when --find-if-exists is given" do
104
+ before { @command_args << "--find-if-exists" }
105
+
106
+ context "when --target is given" do
107
+ before { @command_args << "--target" }
108
+
109
+ it "switches them to the new space" do
110
+ mock_invoke :target, organization: organization, space: new_space
111
+ cf @command_args
112
+ end
113
+ end
114
+
115
+ context "when --target is NOT given" do
116
+ it "tells the user how they can switch to the new space" do
117
+ cf @command_args
118
+ expect(output).to say("Space created!\n\ncf switch-space #{new_space.name} # targets new space")
119
+ end
120
+ end
121
+ end
122
+
123
+ context "when --find-if-exists is NOT given" do
124
+ context "when --target is given" do
125
+ before { @command_args << "--target" }
126
+
127
+ it "switches them to the new space" do
128
+ mock_invoke :target, organization: organization, space: new_space
129
+ cf @command_args
130
+ end
131
+ end
56
132
 
57
- it "tells the user how they can switch to the new space" do
58
- subject
59
- expect(output).to say("Space created!\n\ncf switch-space #{new_space.name} # targets new space")
133
+ context "when --target is NOT given" do
134
+ it "tells the user how they can switch to the new space" do
135
+ cf @command_args
136
+ expect(output).to say("Space created!\n\ncf switch-space #{new_space.name} # targets new space")
137
+ end
138
+ end
60
139
  end
61
140
  end
62
141
  end
@@ -1,14 +1,9 @@
1
1
  require "spec_helper"
2
2
 
3
3
  if ENV["CF_V2_RUN_INTEGRATION"]
4
- describe "creating and deleting orgs", :ruby19 => true do
5
- before(:all) do
6
- WebMock.allow_net_connect!
7
- end
8
-
9
- after(:all) do
10
- WebMock.disable_net_connect!
11
- end
4
+ describe "creating and deleting orgs", ruby19: true do
5
+ before(:all) { WebMock.allow_net_connect! }
6
+ after(:all) { WebMock.disable_net_connect! }
12
7
 
13
8
  let(:run_id) { TRAVIS_BUILD_ID.to_s + Time.new.to_f.to_s.gsub(".", "_") }
14
9
  let(:new_org_name) { "new-org-#{run_id}" }
@@ -25,27 +20,31 @@ if ENV["CF_V2_RUN_INTEGRATION"]
25
20
 
26
21
  it "can create and recursively delete an org" do
27
22
  BlueShell::Runner.run("#{cf_bin} create-org #{new_org_name}") do |runner|
28
- runner.should say "Creating organization #{new_org_name}... OK"
29
- runner.should say "Switching to organization #{new_org_name}... OK"
30
- runner.should say "There are no spaces. You may want to create one with create-space."
23
+ expect(runner).to say "Creating organization #{new_org_name}... OK"
24
+ expect(runner).to say "Switching to organization #{new_org_name}... OK"
25
+ expect(runner).to say "There are no spaces. You may want to create one with create-space."
31
26
  end
32
27
 
33
28
  BlueShell::Runner.run("#{cf_bin} create-space new-space") do |runner|
34
- runner.should say "Creating space new-space... OK"
29
+ expect(runner).to say "Creating space new-space... OK"
35
30
  end
36
31
 
37
- # pending until cc change 442f08e72c0808baf85b948a8b56e58f025edf72 is on a1
38
- #BlueShell::Runner.run("cf delete-org #{new_org_name} --force") do |runner|
39
- # runner.should say "If you want to delete the organization along with all dependent objects, rerun the command with the '--recursive' flag."
40
- #end
32
+ # TODO: pending until cc change 442f08e72c0808baf85b948a8b56e58f025edf72 is on a1
33
+ #
34
+ # BlueShell::Runner.run("cf delete-org #{new_org_name} --force") do |runner|
35
+ # expect(runner).to say "If you want to delete the organization along with" +
36
+ # " all dependent objects, rerun the command with the '--recursive' flag."
37
+ # end
41
38
 
42
39
  BlueShell::Runner.run("#{cf_bin} delete-org #{new_org_name} --force --recursive") do |runner|
43
- runner.should say("Deleting organization #{new_org_name}... OK")
40
+ expect(runner).to say "Deleting organization #{new_org_name}... OK", 15
44
41
  end
45
42
 
46
43
  BlueShell::Runner.run("#{cf_bin} orgs") do |runner|
47
- runner.should_not say("#{new_org_name}")
44
+ expect(runner).to_not say new_org_name
48
45
  end
49
46
  end
50
47
  end
48
+ else
49
+ $stderr.puts 'Skipping v2 integration specs; please provide necessary environment variables'
51
50
  end
@@ -103,7 +103,7 @@ if ENV["CF_V2_RUN_INTEGRATION"]
103
103
  runner.send_keys "uri"
104
104
 
105
105
  expect(runner).to say "uri>"
106
- runner.send_keys "mysql://u:p@example.com:port/db"
106
+ runner.send_keys "mysql://u:p@example.com:3306/db"
107
107
 
108
108
  expect(runner).to say /Creating service #{user_provided_name}.*OK/
109
109
  expect(runner).to say /Binding .+ to .+ OK/
@@ -1,7 +1,7 @@
1
1
  require "spec_helper"
2
2
 
3
3
  if ENV['CF_V2_RUN_INTEGRATION']
4
- describe 'A new user tries to use CF against v2 production', :ruby19 => true do
4
+ describe 'A new user tries to use CF against v2 production', ruby19: true do
5
5
 
6
6
  let(:target) { ENV['CF_V2_TEST_TARGET'] }
7
7
  let(:space) { ENV['CF_V2_TEST_SPACE'] }
@@ -14,6 +14,7 @@ if ENV['CF_V2_RUN_INTEGRATION']
14
14
  before do
15
15
  Interact::Progress::Dots.start!
16
16
  end
17
+
17
18
  after do
18
19
  logout
19
20
  Interact::Progress::Dots.stop!
@@ -37,23 +38,23 @@ if ENV['CF_V2_RUN_INTEGRATION']
37
38
  login
38
39
 
39
40
  BlueShell::Runner.run("#{cf_bin} target -o #{organization_2}") do |runner|
40
- expect(runner).to say("Switching to organization #{organization_2}")
41
- expect(runner).to say("Space>")
41
+ expect(runner).to say "Switching to organization #{organization_2}"
42
+ expect(runner).to say "Space>"
42
43
  runner.send_keys space_2
43
44
 
44
45
  expect(runner).to say(/Switching to space #{space_2}/)
45
46
 
46
- runner.wait_for_exit
47
+ runner.wait_for_exit 15
47
48
  end
48
49
 
49
50
  BlueShell::Runner.run("#{cf_bin} target -s #{space}") do |runner|
50
51
  expect(runner).to say("Switching to space #{space}")
51
- runner.wait_for_exit(15)
52
+ runner.wait_for_exit 15
52
53
  end
53
54
 
54
55
  BlueShell::Runner.run("#{cf_bin} target -s #{space_2}") do |runner|
55
56
  expect(runner).to say("Switching to space #{space_2}")
56
- runner.wait_for_exit(15)
57
+ runner.wait_for_exit 15
57
58
  end
58
59
  end
59
60
  end
@@ -24,7 +24,7 @@ module FeaturesHelper
24
24
  def set_target
25
25
  target = ENV['CF_V2_TEST_TARGET']
26
26
  BlueShell::Runner.run("#{cf_bin} target #{target}") do |runner|
27
- runner.wait_for_exit(20)
27
+ runner.wait_for_exit 20
28
28
  end
29
29
  end
30
30
 
@@ -80,8 +80,8 @@ module FeaturesHelper
80
80
  expect(runner).to say "Domain>"
81
81
  runner.send_keys "1"
82
82
 
83
- expect(runner).to say(/Creating route #{deployed_app_name}\..*\.\.\. OK/)
84
- expect(runner).to say(/Binding #{deployed_app_name}\..* to #{deployed_app_name}\.\.\. OK/)
83
+ expect(runner).to say /Creating route #{deployed_app_name}\..*\.\.\. OK/
84
+ expect(runner).to say /Binding #{deployed_app_name}\..* to #{deployed_app_name}\.\.\. OK/
85
85
 
86
86
  expect(runner).to say "Create services for application?> n"
87
87
  runner.send_return
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.rc3
5
- prerelease: 6
4
+ version: 5.0.0.rc4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Cloud Foundry Team
@@ -10,12 +9,11 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-08-08 00:00:00.000000000 Z
12
+ date: 2013-08-09 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: addressable
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
18
  - - ~>
21
19
  - !ruby/object:Gem::Version
@@ -23,7 +21,6 @@ dependencies:
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
25
  - - ~>
29
26
  - !ruby/object:Gem::Version
@@ -31,7 +28,6 @@ dependencies:
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: caldecott-client
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
32
  - - ~>
37
33
  - !ruby/object:Gem::Version
@@ -39,7 +35,6 @@ dependencies:
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
39
  - - ~>
45
40
  - !ruby/object:Gem::Version
@@ -47,23 +42,20 @@ dependencies:
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: cfoundry
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
46
  - - ~>
53
47
  - !ruby/object:Gem::Version
54
- version: 4.2.0.rc
48
+ version: 4.3.0
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
53
  - - ~>
61
54
  - !ruby/object:Gem::Version
62
- version: 4.2.0.rc
55
+ version: 4.3.0
63
56
  - !ruby/object:Gem::Dependency
64
57
  name: interact
65
58
  requirement: !ruby/object:Gem::Requirement
66
- none: false
67
59
  requirements:
68
60
  - - ~>
69
61
  - !ruby/object:Gem::Version
@@ -71,7 +63,6 @@ dependencies:
71
63
  type: :runtime
72
64
  prerelease: false
73
65
  version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
66
  requirements:
76
67
  - - ~>
77
68
  - !ruby/object:Gem::Version
@@ -79,7 +70,6 @@ dependencies:
79
70
  - !ruby/object:Gem::Dependency
80
71
  name: json_pure
81
72
  requirement: !ruby/object:Gem::Requirement
82
- none: false
83
73
  requirements:
84
74
  - - ~>
85
75
  - !ruby/object:Gem::Version
@@ -87,7 +77,6 @@ dependencies:
87
77
  type: :runtime
88
78
  prerelease: false
89
79
  version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
80
  requirements:
92
81
  - - ~>
93
82
  - !ruby/object:Gem::Version
@@ -95,7 +84,6 @@ dependencies:
95
84
  - !ruby/object:Gem::Dependency
96
85
  name: mothership
97
86
  requirement: !ruby/object:Gem::Requirement
98
- none: false
99
87
  requirements:
100
88
  - - ! '>='
101
89
  - !ruby/object:Gem::Version
@@ -106,7 +94,6 @@ dependencies:
106
94
  type: :runtime
107
95
  prerelease: false
108
96
  version_requirements: !ruby/object:Gem::Requirement
109
- none: false
110
97
  requirements:
111
98
  - - ! '>='
112
99
  - !ruby/object:Gem::Version
@@ -117,7 +104,6 @@ dependencies:
117
104
  - !ruby/object:Gem::Dependency
118
105
  name: multi_json
119
106
  requirement: !ruby/object:Gem::Requirement
120
- none: false
121
107
  requirements:
122
108
  - - ~>
123
109
  - !ruby/object:Gem::Version
@@ -125,7 +111,6 @@ dependencies:
125
111
  type: :runtime
126
112
  prerelease: false
127
113
  version_requirements: !ruby/object:Gem::Requirement
128
- none: false
129
114
  requirements:
130
115
  - - ~>
131
116
  - !ruby/object:Gem::Version
@@ -133,7 +118,6 @@ dependencies:
133
118
  - !ruby/object:Gem::Dependency
134
119
  name: rest-client
135
120
  requirement: !ruby/object:Gem::Requirement
136
- none: false
137
121
  requirements:
138
122
  - - ~>
139
123
  - !ruby/object:Gem::Version
@@ -141,7 +125,6 @@ dependencies:
141
125
  type: :runtime
142
126
  prerelease: false
143
127
  version_requirements: !ruby/object:Gem::Requirement
144
- none: false
145
128
  requirements:
146
129
  - - ~>
147
130
  - !ruby/object:Gem::Version
@@ -149,7 +132,6 @@ dependencies:
149
132
  - !ruby/object:Gem::Dependency
150
133
  name: uuidtools
151
134
  requirement: !ruby/object:Gem::Requirement
152
- none: false
153
135
  requirements:
154
136
  - - ~>
155
137
  - !ruby/object:Gem::Version
@@ -157,7 +139,6 @@ dependencies:
157
139
  type: :runtime
158
140
  prerelease: false
159
141
  version_requirements: !ruby/object:Gem::Requirement
160
- none: false
161
142
  requirements:
162
143
  - - ~>
163
144
  - !ruby/object:Gem::Version
@@ -165,7 +146,6 @@ dependencies:
165
146
  - !ruby/object:Gem::Dependency
166
147
  name: blue-shell
167
148
  requirement: !ruby/object:Gem::Requirement
168
- none: false
169
149
  requirements:
170
150
  - - ! '>='
171
151
  - !ruby/object:Gem::Version
@@ -173,7 +153,6 @@ dependencies:
173
153
  type: :development
174
154
  prerelease: false
175
155
  version_requirements: !ruby/object:Gem::Requirement
176
- none: false
177
156
  requirements:
178
157
  - - ! '>='
179
158
  - !ruby/object:Gem::Version
@@ -181,7 +160,6 @@ dependencies:
181
160
  - !ruby/object:Gem::Dependency
182
161
  name: factory_girl
183
162
  requirement: !ruby/object:Gem::Requirement
184
- none: false
185
163
  requirements:
186
164
  - - ! '>='
187
165
  - !ruby/object:Gem::Version
@@ -189,7 +167,6 @@ dependencies:
189
167
  type: :development
190
168
  prerelease: false
191
169
  version_requirements: !ruby/object:Gem::Requirement
192
- none: false
193
170
  requirements:
194
171
  - - ! '>='
195
172
  - !ruby/object:Gem::Version
@@ -197,7 +174,6 @@ dependencies:
197
174
  - !ruby/object:Gem::Dependency
198
175
  name: fakefs
199
176
  requirement: !ruby/object:Gem::Requirement
200
- none: false
201
177
  requirements:
202
178
  - - ~>
203
179
  - !ruby/object:Gem::Version
@@ -205,7 +181,6 @@ dependencies:
205
181
  type: :development
206
182
  prerelease: false
207
183
  version_requirements: !ruby/object:Gem::Requirement
208
- none: false
209
184
  requirements:
210
185
  - - ~>
211
186
  - !ruby/object:Gem::Version
@@ -213,7 +188,6 @@ dependencies:
213
188
  - !ruby/object:Gem::Dependency
214
189
  name: ffaker
215
190
  requirement: !ruby/object:Gem::Requirement
216
- none: false
217
191
  requirements:
218
192
  - - '='
219
193
  - !ruby/object:Gem::Version
@@ -221,7 +195,6 @@ dependencies:
221
195
  type: :development
222
196
  prerelease: false
223
197
  version_requirements: !ruby/object:Gem::Requirement
224
- none: false
225
198
  requirements:
226
199
  - - '='
227
200
  - !ruby/object:Gem::Version
@@ -229,7 +202,6 @@ dependencies:
229
202
  - !ruby/object:Gem::Dependency
230
203
  name: gem-release
231
204
  requirement: !ruby/object:Gem::Requirement
232
- none: false
233
205
  requirements:
234
206
  - - ! '>='
235
207
  - !ruby/object:Gem::Version
@@ -237,7 +209,6 @@ dependencies:
237
209
  type: :development
238
210
  prerelease: false
239
211
  version_requirements: !ruby/object:Gem::Requirement
240
- none: false
241
212
  requirements:
242
213
  - - ! '>='
243
214
  - !ruby/object:Gem::Version
@@ -245,7 +216,6 @@ dependencies:
245
216
  - !ruby/object:Gem::Dependency
246
217
  name: rake
247
218
  requirement: !ruby/object:Gem::Requirement
248
- none: false
249
219
  requirements:
250
220
  - - ~>
251
221
  - !ruby/object:Gem::Version
@@ -253,7 +223,6 @@ dependencies:
253
223
  type: :development
254
224
  prerelease: false
255
225
  version_requirements: !ruby/object:Gem::Requirement
256
- none: false
257
226
  requirements:
258
227
  - - ~>
259
228
  - !ruby/object:Gem::Version
@@ -261,7 +230,6 @@ dependencies:
261
230
  - !ruby/object:Gem::Dependency
262
231
  name: rspec
263
232
  requirement: !ruby/object:Gem::Requirement
264
- none: false
265
233
  requirements:
266
234
  - - ~>
267
235
  - !ruby/object:Gem::Version
@@ -269,7 +237,6 @@ dependencies:
269
237
  type: :development
270
238
  prerelease: false
271
239
  version_requirements: !ruby/object:Gem::Requirement
272
- none: false
273
240
  requirements:
274
241
  - - ~>
275
242
  - !ruby/object:Gem::Version
@@ -277,7 +244,6 @@ dependencies:
277
244
  - !ruby/object:Gem::Dependency
278
245
  name: rspec-instafail
279
246
  requirement: !ruby/object:Gem::Requirement
280
- none: false
281
247
  requirements:
282
248
  - - ~>
283
249
  - !ruby/object:Gem::Version
@@ -285,7 +251,6 @@ dependencies:
285
251
  type: :development
286
252
  prerelease: false
287
253
  version_requirements: !ruby/object:Gem::Requirement
288
- none: false
289
254
  requirements:
290
255
  - - ~>
291
256
  - !ruby/object:Gem::Version
@@ -293,7 +258,6 @@ dependencies:
293
258
  - !ruby/object:Gem::Dependency
294
259
  name: webmock
295
260
  requirement: !ruby/object:Gem::Requirement
296
- none: false
297
261
  requirements:
298
262
  - - ~>
299
263
  - !ruby/object:Gem::Version
@@ -301,7 +265,6 @@ dependencies:
301
265
  type: :development
302
266
  prerelease: false
303
267
  version_requirements: !ruby/object:Gem::Requirement
304
- none: false
305
268
  requirements:
306
269
  - - ~>
307
270
  - !ruby/object:Gem::Version
@@ -309,7 +272,6 @@ dependencies:
309
272
  - !ruby/object:Gem::Dependency
310
273
  name: httpclient
311
274
  requirement: !ruby/object:Gem::Requirement
312
- none: false
313
275
  requirements:
314
276
  - - ~>
315
277
  - !ruby/object:Gem::Version
@@ -317,7 +279,6 @@ dependencies:
317
279
  type: :development
318
280
  prerelease: false
319
281
  version_requirements: !ruby/object:Gem::Requirement
320
- none: false
321
282
  requirements:
322
283
  - - ~>
323
284
  - !ruby/object:Gem::Version
@@ -325,7 +286,6 @@ dependencies:
325
286
  - !ruby/object:Gem::Dependency
326
287
  name: yajl-ruby
327
288
  requirement: !ruby/object:Gem::Requirement
328
- none: false
329
289
  requirements:
330
290
  - - ! '>='
331
291
  - !ruby/object:Gem::Version
@@ -333,7 +293,6 @@ dependencies:
333
293
  type: :development
334
294
  prerelease: false
335
295
  version_requirements: !ruby/object:Gem::Requirement
336
- none: false
337
296
  requirements:
338
297
  - - ! '>='
339
298
  - !ruby/object:Gem::Version
@@ -341,7 +300,6 @@ dependencies:
341
300
  - !ruby/object:Gem::Dependency
342
301
  name: nats
343
302
  requirement: !ruby/object:Gem::Requirement
344
- none: false
345
303
  requirements:
346
304
  - - ! '>='
347
305
  - !ruby/object:Gem::Version
@@ -349,7 +307,6 @@ dependencies:
349
307
  type: :development
350
308
  prerelease: false
351
309
  version_requirements: !ruby/object:Gem::Requirement
352
- none: false
353
310
  requirements:
354
311
  - - ! '>='
355
312
  - !ruby/object:Gem::Version
@@ -357,7 +314,6 @@ dependencies:
357
314
  - !ruby/object:Gem::Dependency
358
315
  name: typhoeus
359
316
  requirement: !ruby/object:Gem::Requirement
360
- none: false
361
317
  requirements:
362
318
  - - ! '>='
363
319
  - !ruby/object:Gem::Version
@@ -365,7 +321,6 @@ dependencies:
365
321
  type: :development
366
322
  prerelease: false
367
323
  version_requirements: !ruby/object:Gem::Requirement
368
- none: false
369
324
  requirements:
370
325
  - - ! '>='
371
326
  - !ruby/object:Gem::Version
@@ -373,7 +328,6 @@ dependencies:
373
328
  - !ruby/object:Gem::Dependency
374
329
  name: anchorman
375
330
  requirement: !ruby/object:Gem::Requirement
376
- none: false
377
331
  requirements:
378
332
  - - ! '>='
379
333
  - !ruby/object:Gem::Version
@@ -381,7 +335,6 @@ dependencies:
381
335
  type: :development
382
336
  prerelease: false
383
337
  version_requirements: !ruby/object:Gem::Requirement
384
- none: false
385
338
  requirements:
386
339
  - - ! '>='
387
340
  - !ruby/object:Gem::Version
@@ -590,6 +543,7 @@ files:
590
543
  - spec/cf/cli/domain/map_spec.rb
591
544
  - spec/cf/cli/domain/unmap_spec.rb
592
545
  - spec/cf/cli/help_spec.rb
546
+ - spec/cf/cli/organization/create_spec.rb
593
547
  - spec/cf/cli/organization/delete_spec.rb
594
548
  - spec/cf/cli/organization/help_spec.rb
595
549
  - spec/cf/cli/organization/orgs_spec.rb
@@ -677,30 +631,26 @@ files:
677
631
  homepage: http://github.com/cloudfoundry/cf
678
632
  licenses:
679
633
  - Apache 2.0
634
+ metadata: {}
680
635
  post_install_message:
681
636
  rdoc_options: []
682
637
  require_paths:
683
638
  - lib
684
639
  required_ruby_version: !ruby/object:Gem::Requirement
685
- none: false
686
640
  requirements:
687
641
  - - ! '>='
688
642
  - !ruby/object:Gem::Version
689
643
  version: '0'
690
- segments:
691
- - 0
692
- hash: 4338688848602713526
693
644
  required_rubygems_version: !ruby/object:Gem::Requirement
694
- none: false
695
645
  requirements:
696
646
  - - ! '>'
697
647
  - !ruby/object:Gem::Version
698
648
  version: 1.3.1
699
649
  requirements: []
700
650
  rubyforge_project: cf
701
- rubygems_version: 1.8.25
651
+ rubygems_version: 2.0.5
702
652
  signing_key:
703
- specification_version: 3
653
+ specification_version: 4
704
654
  summary: Friendly command-line interface for Cloud Foundry.
705
655
  test_files:
706
656
  - spec/admin/curl_spec.rb
@@ -780,6 +730,7 @@ test_files:
780
730
  - spec/cf/cli/domain/map_spec.rb
781
731
  - spec/cf/cli/domain/unmap_spec.rb
782
732
  - spec/cf/cli/help_spec.rb
733
+ - spec/cf/cli/organization/create_spec.rb
783
734
  - spec/cf/cli/organization/delete_spec.rb
784
735
  - spec/cf/cli/organization/help_spec.rb
785
736
  - spec/cf/cli/organization/orgs_spec.rb