lib/cfoundry/v2/app.rb in cfoundry-1.5.3 vs lib/cfoundry/v2/app.rb in cfoundry-2.0.0
- old
+ new
@@ -29,11 +29,11 @@
attribute :buildpack, :string, :default => nil
to_one :stack, :default => nil
attribute :debug, :string, :default => nil
to_many :service_bindings
to_many :routes
- to_many :app_events
+ to_many :events, :as => :app_event
scoped_to_space
queryable_by :name, :space_guid, :organization_guid
@@ -45,14 +45,11 @@
self.total_instances = x
}
private :environment_json
- alias :events :app_events
- alias :events= :app_events=
-
- def delete!
- super({:recursive => true})
+ def delete!(opts = {})
+ super(opts.merge(:recursive => true))
end
def instances
@client.base.instances(@guid).collect do |i, m|
Instance.new(self, i.to_s, @client, m)