lib/cfoundry/v2/app.rb in cfoundry-IronFoundry-0.3.34 vs lib/cfoundry/v2/app.rb in cfoundry-IronFoundry-0.3.39

- old
+ new

@@ -26,10 +26,12 @@ attribute :memory, :integer, :default => 256 attribute :instances, :integer, :default => 1 attribute :file_descriptors, :integer, :default => 256 attribute :disk_quota, :integer, :default => 256 attribute :state, :integer, :default => "STOPPED" + attribute :command, :string, :default => nil + attribute :console, :boolean, :default => false to_many :service_bindings to_many :routes alias :total_instances :instances alias :total_instances= :instances= @@ -41,11 +43,17 @@ Instance.new(self, i.to_s, @client, m) end end def stats - @client.base.stats(@guid) + stats = {} + + @client.base.stats(@guid).each do |idx, info| + stats[idx.to_s] = info + end + + stats end def services service_bindings.collect(&:service_instance) end @@ -56,18 +64,10 @@ environment_json) end alias :env= :environment_json= - def command # TODO v2 - nil - end - def debug_mode # TODO v2 - nil - end - - def console # TODO v2 nil end def uris routes.collect do |r|