Sha256: 366689ea3c2e37e03b3fa13813f65e3febe0069008e2ef0fdd25c3f1829a4c81
Contents?: true
Size: 963 Bytes
Versions: 2
Compression:
Stored size: 963 Bytes
Contents
module Ironfan class Dsl class Server < Ironfan::Dsl::Compute field :cluster_name, String field :facet_name, String def initialize(attrs={},&block) unless attrs[:owner].nil? self.cluster_name = attrs[:owner].cluster_name self.facet_name = attrs[:owner].name self.role "#{self.cluster_name}_cluster", :last self.role attrs[:owner].facet_role.name, :last end super end def fullname() "#{cluster_name}-#{facet_name}-#{name}"; end def index() name.to_i; end def implied_volumes() selected_cloud.implied_volumes; end def to_display(style,values={}) selected_cloud.to_display(style,values) return values if style == :minimal values["Env"] = environment values end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ironfan-4.0.9 | lib/ironfan/dsl/server.rb |
ironfan-4.0.8 | lib/ironfan/dsl/server.rb |