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



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

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

#inspectObject



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

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