Sha256: 0e590f58dee292a6d5ffb386d18ae9b4fdbbe01f6974ba5451a7084bbb4942c2
Contents?: true
Size: 546 Bytes
Versions: 10
Compression:
Stored size: 546 Bytes
Contents
require 'dm-core' class Instance include DataMapper::Resource property :id, Serial property :name, String property :role, String property :status, String property :amazon_id, String property :public_hostname, String property :availability_zone, String, :default => 'us-east-1b' belongs_to :environment def inspect "#<Instance environment:#{environment.name} role:#{role} name:#{name}>" end def bridge %w[app_master solo].include?(role) end end
Version data entries
10 entries across 10 versions & 1 rubygems