class Generamba::TemplateDeclaration
Describes a Generamba
template declaration model
Attributes
branch[R]
git[R]
local[R]
name[R]
type[R]
Public Class Methods
new(template_hash)
click to toggle source
# File lib/generamba/template/processor/template_declaration.rb, line 20 def initialize(template_hash) @name = template_hash[TEMPLATE_DECLARATION_NAME_KEY] @local = template_hash[TEMPLATE_DECLARATION_LOCAL_KEY] @git = template_hash[TEMPLATE_DECLARATION_GIT_KEY] @branch = template_hash[TEMPLATE_DECLARATION_BRANCH_KEY] @type = TemplateDeclarationType::LOCAL_TEMPLATE if @local @type = TemplateDeclarationType::REMOTE_TEMPLATE if @git @type = TemplateDeclarationType::CATALOG_TEMPLATE if @git == nil && @local == nil end
Public Instance Methods
install(strategy)
click to toggle source
# File lib/generamba/template/processor/template_declaration.rb, line 31 def install(strategy) strategy.install_template(self) end