cf 2.0.1 → 2.1.0

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CF
2
- VERSION = "2.0.1".freeze
2
+ VERSION = "2.1.0".freeze
3
3
  end
@@ -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
- shared_examples "an app that can have a custom start command" do
94
- it "asks for a start command with a default as 'none'" do
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 "asks for a start command" do
141
- should_ask("Custom startup command", :default => "none")
142
- subject
122
+ it "is nil" do
123
+ expect(subject[:command]).to be_nil
143
124
  end
144
125
  end
145
126
  end
@@ -242,7 +242,7 @@ module CF
242
242
  let(:host) { "" }
243
243
  let(:domain) { build(:domain) }
244
244
  let(:inputs) do
245
- {:name => "some-app",
245
+ { :name => "some-app",
246
246
  :instances => 2,
247
247
  :memory => 1024,
248
248
  :host => host,
@@ -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).to say "Custom startup command> "
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"
@@ -37,9 +37,6 @@ module FeaturesHelper
37
37
  expect(runner).to say "Instances> 1", 15
38
38
  runner.send_return
39
39
 
40
- expect(runner).to say "Custom startup command> "
41
- runner.send_return
42
-
43
40
  expect(runner).to say "Memory Limit>"
44
41
  runner.send_keys "128M"
45
42
 
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.1
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: 142598794769615443
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.24
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.