cf 5.2.1.rc5 → 5.2.1.rc6

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,7 +111,9 @@ module CF::App
111
111
 
112
112
  if one_instance_running?(instances)
113
113
  line "#{c("Push successful! App '#{app.name}' available at http://#{app.host}.#{app.domain}", :good)}"
114
- line "#{c("TIP: The system will continue to start all requested app instances. Try 'cf app' to monitor app status.", :warning)}"
114
+ unless all_instances_running?(instances)
115
+ line "#{c("TIP: The system will continue to start all requested app instances. Try 'cf app' to monitor app status.", :warning)}"
116
+ end
115
117
  return
116
118
  end
117
119
  rescue CFoundry::NotStaged
@@ -130,6 +132,10 @@ module CF::App
130
132
  instances.any? { |i| i.state == "RUNNING" }
131
133
  end
132
134
 
135
+ def all_instances_running?(instances)
136
+ instances.all? { |i| i.state == "RUNNING" }
137
+ end
138
+
133
139
  def any_instance_flapping?(instances)
134
140
  instances.any? { |i| i.state == "FLAPPING" }
135
141
  end
data/lib/cf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "5.2.1.rc5".freeze
2
+ VERSION = "5.2.1.rc6".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: 5.2.1.rc5
4
+ version: 5.2.1.rc6
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-08-22 00:00:00.000000000 Z
13
+ date: 2013-08-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable
@@ -466,7 +466,6 @@ files:
466
466
  - spec/assets/hello-sinatra/Gemfile
467
467
  - spec/assets/hello-sinatra/Gemfile.lock
468
468
  - spec/assets/hello-sinatra/main.rb
469
- - spec/assets/hello-sinatra/manifest.yml
470
469
  - spec/assets/rails328_ruby187_app/app/assets/images/rails.png
471
470
  - spec/assets/rails328_ruby187_app/app/assets/javascripts/application.js
472
471
  - spec/assets/rails328_ruby187_app/app/assets/stylesheets/application.css
@@ -635,7 +634,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
635
634
  version: '0'
636
635
  segments:
637
636
  - 0
638
- hash: -2638009255464879430
637
+ hash: -4512813733364903773
639
638
  required_rubygems_version: !ruby/object:Gem::Requirement
640
639
  none: false
641
640
  requirements:
@@ -664,7 +663,6 @@ test_files:
664
663
  - spec/assets/hello-sinatra/Gemfile
665
664
  - spec/assets/hello-sinatra/Gemfile.lock
666
665
  - spec/assets/hello-sinatra/main.rb
667
- - spec/assets/hello-sinatra/manifest.yml
668
666
  - spec/assets/rails328_ruby187_app/app/assets/images/rails.png
669
667
  - spec/assets/rails328_ruby187_app/app/assets/javascripts/application.js
670
668
  - spec/assets/rails328_ruby187_app/app/assets/stylesheets/application.css
@@ -1,17 +0,0 @@
1
- ---
2
- applications:
3
- - name: hello-sinatra-1377212364_2782688
4
- memory: 256M
5
- instances: 1
6
- host: hello-sinatra-subdomain-1377212364_2782688
7
- domain: cfapps.io
8
- path: .
9
- services:
10
- user-provided-1377212364_2782688:
11
- label: user-provided
12
- credentials:
13
- username: abc123
14
- password: sunshine
15
- hostname: oracle.enterprise.com
16
- port: 1234
17
- name: myoracledb2