cfoundry 0.3.36 → 0.3.37

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.
@@ -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
- @client.base.stats(@name)
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.
@@ -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
@@ -1,4 +1,4 @@
1
1
  module CFoundry # :nodoc:
2
2
  # CFoundry library version number.
3
- VERSION = "0.3.36"
3
+ VERSION = "0.3.37"
4
4
  end
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: 91
4
+ hash: 89
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 36
10
- version: 0.3.36
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-09-27 00:00:00 Z
18
+ date: 2012-10-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client