Class: Instance

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/engineyard-cloud-client/test/fake_awsm/models/instance.rb

Instance Method Summary collapse

Instance Method Details

#bridgeObject



20
21
22
# File 'lib/engineyard-cloud-client/test/fake_awsm/models/instance.rb', line 20

def bridge
  %w[app_master solo].include?(role)
end

#inspectObject



16
17
18
# File 'lib/engineyard-cloud-client/test/fake_awsm/models/instance.rb', line 16

def inspect
  "#<Instance environment:#{environment.name} role:#{role} name:#{name}>"
end