Class: FsTemplate::ProjectConfig

Inherits:
Object
  • Object
show all
Includes:
FromHash
Defined in:
lib/fs_template/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base(*args) ⇒ Object

Returns the value of attribute base.



81
82
83
# File 'lib/fs_template/project.rb', line 81

def base
  @base
end

#base_opsObject

Returns the value of attribute base_ops.



81
82
83
# File 'lib/fs_template/project.rb', line 81

def base_ops
  @base_ops
end

#bodyObject

Returns the value of attribute body.



81
82
83
# File 'lib/fs_template/project.rb', line 81

def body
  @body
end

Instance Method Details

#command(cmd, phase = :after) ⇒ Object



98
99
100
# File 'lib/fs_template/project.rb', line 98

def command(cmd,phase=:after)
  self.commands << {:command => cmd, :phase => phase}
end

#load!Object



102
103
104
105
# File 'lib/fs_template/project.rb', line 102

def load!
  c = self
  eval(body)
end

#overlay(name) ⇒ Object



94
95
96
# File 'lib/fs_template/project.rb', line 94

def overlay(name)
  self.overlays << name
end