lib/cfoundry/v2/app.rb in cfoundry-0.4.21 vs lib/cfoundry/v2/app.rb in cfoundry-0.5.0

- old
+ new

@@ -22,16 +22,16 @@ to_one :space to_one :runtime to_one :framework attribute :environment_json, :hash, :default => {} attribute :memory, :integer, :default => 256 - attribute :instances, :integer, :default => 1 - attribute :file_descriptors, :integer, :default => 256 + attribute :total_instances, :integer, :default => 1, :at => :instances attribute :disk_quota, :integer, :default => 256 attribute :state, :string, :default => "STOPPED" attribute :command, :string, :default => nil attribute :console, :boolean, :default => false + attribute :buildpack, :string, :default => nil to_many :service_bindings to_many :routes scoped_to_space @@ -72,12 +72,9 @@ else self.runtime = @client.runtime(nil, true) self.runtime.name = x end } - - alias :total_instances :instances - alias :total_instances= :instances= private :environment_json def instances @client.base.instances(@guid).collect do |i, m|