Sha256: 3405bef1cb8ee07d6e3ee78b7ba3ce36e2cb2af618a7bd8c632a12ef7745d5c4
Contents?: true
Size: 518 Bytes
Versions: 23
Compression:
Stored size: 518 Bytes
Contents
require 'dm-core' class Environment include DataMapper::Resource property :id, Serial property :name, String property :ssh_username, String property :app_server_stack_name, String property :load_balancer_ip_address, String property :framework_env, String belongs_to :account has n, :app_environments has n, :apps, :through => :app_environments has n, :instances def inspect "#<Environment name:#{name} account:#{account.name}>" end def instances_count instances.size end end
Version data entries
23 entries across 23 versions & 1 rubygems