cf 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
data/lib/cf/cli/app/push.rb
CHANGED
@@ -24,7 +24,7 @@ module CF::App
|
|
24
24
|
}
|
25
25
|
input :memory, :desc => "Memory limit"
|
26
26
|
input :instances, :desc => "Number of instances to run", :type => :integer
|
27
|
-
input :command, :desc => "Startup command"
|
27
|
+
input :command, :desc => "Startup command", :default => nil
|
28
28
|
input :plan, :desc => "Application plan"
|
29
29
|
input :start, :desc => "Start app after pushing?", :default => true
|
30
30
|
input :restart, :desc => "Restart app after updating?", :default => true
|
data/lib/cf/version.rb
CHANGED
@@ -90,28 +90,10 @@ module CF
|
|
90
90
|
context "when the command is not given" do
|
91
91
|
before { given.delete(:command) }
|
92
92
|
|
93
|
-
|
94
|
-
|
95
|
-
should_ask("Custom startup command", :default => "none") do
|
96
|
-
"abcd"
|
97
|
-
end
|
98
|
-
|
99
|
-
expect(subject[:command]).to eq "abcd"
|
100
|
-
end
|
101
|
-
|
102
|
-
context "when the user enters 'none'" do
|
103
|
-
it "has the command as nil" do
|
104
|
-
stub_ask("Custom startup command", :default => "none") do
|
105
|
-
"none"
|
106
|
-
end
|
107
|
-
|
108
|
-
expect(subject[:command]).to be_nil
|
109
|
-
end
|
110
|
-
end
|
93
|
+
it "defaults to nil" do
|
94
|
+
expect(subject[:command]).to be_nil
|
111
95
|
end
|
112
96
|
|
113
|
-
include_examples "an app that can have a custom start command"
|
114
|
-
|
115
97
|
describe "getting the start command" do
|
116
98
|
before do
|
117
99
|
FakeFS.activate!
|
@@ -137,9 +119,8 @@ module CF
|
|
137
119
|
end
|
138
120
|
|
139
121
|
context "when there is no Procfile in the app's root" do
|
140
|
-
it "
|
141
|
-
|
142
|
-
subject
|
122
|
+
it "is nil" do
|
123
|
+
expect(subject[:command]).to be_nil
|
143
124
|
end
|
144
125
|
end
|
145
126
|
end
|
@@ -37,8 +37,7 @@ if ENV['CF_V2_RUN_INTEGRATION']
|
|
37
37
|
expect(runner).to say "Instances> 1"
|
38
38
|
runner.send_return
|
39
39
|
|
40
|
-
expect(runner).
|
41
|
-
runner.send_return
|
40
|
+
expect(runner).to_not say "Custom startup command> "
|
42
41
|
|
43
42
|
expect(runner).to say "Memory Limit>"
|
44
43
|
runner.send_keys "128M"
|
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: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -566,7 +566,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
566
566
|
version: '0'
|
567
567
|
segments:
|
568
568
|
- 0
|
569
|
-
hash:
|
569
|
+
hash: -4115993155530150523
|
570
570
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
571
571
|
none: false
|
572
572
|
requirements:
|
@@ -575,7 +575,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
575
575
|
version: '0'
|
576
576
|
requirements: []
|
577
577
|
rubyforge_project: cf
|
578
|
-
rubygems_version: 1.8.
|
578
|
+
rubygems_version: 1.8.25
|
579
579
|
signing_key:
|
580
580
|
specification_version: 3
|
581
581
|
summary: Friendly command-line interface for Cloud Foundry.
|