cf 3.1.0rc2 → 4.0.0rc1
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.
- data/lib/cf/version.rb +1 -1
- data/lib/manifests/manifests.rb +1 -4
- data/spec/manifests/manifests_spec.rb +1 -3
- metadata +2 -3
- data/lib/cf/cli/app/crashes.rb +0 -42
data/lib/cf/version.rb
CHANGED
data/lib/manifests/manifests.rb
CHANGED
@@ -59,9 +59,6 @@ module CFManifests
|
|
59
59
|
when "target-url"
|
60
60
|
client_target
|
61
61
|
|
62
|
-
when "target-base"
|
63
|
-
target_base
|
64
|
-
|
65
62
|
when "random-word"
|
66
63
|
sprintf("%04x", rand(0x0100000))
|
67
64
|
|
@@ -150,7 +147,7 @@ module CFManifests
|
|
150
147
|
"memory" => human_size(app.memory * 1024 * 1024, 0),
|
151
148
|
"instances" => app.total_instances,
|
152
149
|
"host" => app.host || "none",
|
153
|
-
"domain" => app.domain ?
|
150
|
+
"domain" => app.domain ? app.domain : "none",
|
154
151
|
"path" => path
|
155
152
|
}
|
156
153
|
|
@@ -28,8 +28,6 @@ describe CFManifests do
|
|
28
28
|
let(:manifest_file) { "/abc/manifest.yml" }
|
29
29
|
|
30
30
|
before do
|
31
|
-
cmd.stub(:target_base) { target_base }
|
32
|
-
|
33
31
|
cmd.stub(:manifest) { manifest }
|
34
32
|
cmd.stub(:manifest_file) { manifest_file }
|
35
33
|
end
|
@@ -77,7 +75,7 @@ describe CFManifests do
|
|
77
75
|
its(["instances"]) { should eq 2 }
|
78
76
|
its(["path"]) { should eq "some-path" }
|
79
77
|
its(["host"]) { should eq "some-app-name" }
|
80
|
-
its(["domain"]) { should eq
|
78
|
+
its(["domain"]) { should eq app.domain }
|
81
79
|
its(["command"]) { should eq "ruby main.rb" }
|
82
80
|
its(["buildpack"]) { should eq "git://example.com/foo.git" }
|
83
81
|
|
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
|
+
version: 4.0.0rc1
|
5
5
|
prerelease: 5
|
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-06-
|
13
|
+
date: 2013-06-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
@@ -325,7 +325,6 @@ files:
|
|
325
325
|
- lib/cf/cli/app/app.rb
|
326
326
|
- lib/cf/cli/app/apps.rb
|
327
327
|
- lib/cf/cli/app/base.rb
|
328
|
-
- lib/cf/cli/app/crashes.rb
|
329
328
|
- lib/cf/cli/app/delete.rb
|
330
329
|
- lib/cf/cli/app/deprecated.rb
|
331
330
|
- lib/cf/cli/app/env.rb
|
data/lib/cf/cli/app/crashes.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
require "cf/cli/app/base"
|
2
|
-
|
3
|
-
module CF::App
|
4
|
-
class Crashes < Base
|
5
|
-
desc "List an app's crashed instances"
|
6
|
-
group :apps, :info, :hidden => true
|
7
|
-
input :apps, :desc => "Applications whose crashed instances to list",
|
8
|
-
:argument => :splat, :singular => :app, :from_given => by_name(:app)
|
9
|
-
def crashes
|
10
|
-
apps = input[:apps]
|
11
|
-
fail "No applications given." if apps.empty?
|
12
|
-
|
13
|
-
spaced(apps) do |app|
|
14
|
-
instances =
|
15
|
-
with_progress("Getting crashed instances for #{c(app.name, :name)}") do
|
16
|
-
app.crashes
|
17
|
-
end
|
18
|
-
|
19
|
-
line unless quiet?
|
20
|
-
|
21
|
-
spaced(instances) do |i|
|
22
|
-
if quiet?
|
23
|
-
line i.id
|
24
|
-
else
|
25
|
-
display_crashed_instance(i)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
def display_crashed_instance(i)
|
32
|
-
start_line "instance #{c("\##{i.id}", :instance)}: "
|
33
|
-
puts "#{b(c("crashed", :error))} "
|
34
|
-
|
35
|
-
indented do
|
36
|
-
if s = i.since
|
37
|
-
line "since: #{c(s.strftime("%F %r"), :neutral)}"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|