cfoundry 0.3.36 → 0.3.37
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/v1/app.rb +7 -1
- data/lib/cfoundry/v2/app.rb +1 -4
- data/lib/cfoundry/version.rb +1 -1
- metadata +4 -4
data/lib/cfoundry/v1/app.rb
CHANGED
@@ -120,7 +120,13 @@ module CFoundry::V1
|
|
120
120
|
|
121
121
|
# Retrieve application statistics, e.g. CPU load and memory usage.
|
122
122
|
def stats
|
123
|
-
|
123
|
+
stats = {}
|
124
|
+
|
125
|
+
@client.base.stats(@name).each do |idx, info|
|
126
|
+
stats[idx.to_s] = info
|
127
|
+
end
|
128
|
+
|
129
|
+
stats
|
124
130
|
end
|
125
131
|
|
126
132
|
# Update application attributes. Does not restart the application.
|
data/lib/cfoundry/v2/app.rb
CHANGED
@@ -28,6 +28,7 @@ module CFoundry::V2
|
|
28
28
|
attribute :file_descriptors, :integer, :default => 256
|
29
29
|
attribute :disk_quota, :integer, :default => 256
|
30
30
|
attribute :state, :integer, :default => "STOPPED"
|
31
|
+
attribute :command, :string, :default => nil
|
31
32
|
to_many :service_bindings
|
32
33
|
to_many :routes
|
33
34
|
|
@@ -64,10 +65,6 @@ module CFoundry::V2
|
|
64
65
|
|
65
66
|
alias :env= :environment_json=
|
66
67
|
|
67
|
-
def command # TODO v2
|
68
|
-
nil
|
69
|
-
end
|
70
|
-
|
71
68
|
def debug_mode # TODO v2
|
72
69
|
nil
|
73
70
|
end
|
data/lib/cfoundry/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 89
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 37
|
10
|
+
version: 0.3.37
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-10-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rest-client
|