Class: Overapp::ProjectConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#base(*args) ⇒ Object

Returns the value of attribute base.



83
84
85
# File 'lib/overapp/project.rb', line 83

def base
  @base
end

#base_opsObject

Returns the value of attribute base_ops.



83
84
85
# File 'lib/overapp/project.rb', line 83

def base_ops
  @base_ops
end

#bodyObject

Returns the value of attribute body.



83
84
85
# File 'lib/overapp/project.rb', line 83

def body
  @body
end

Instance Method Details

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



104
105
106
# File 'lib/overapp/project.rb', line 104

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

#load!Object



108
109
110
111
# File 'lib/overapp/project.rb', line 108

def load!
  c = self
  eval(body)
end

#overapp(name) ⇒ Object



96
97
98
# File 'lib/overapp/project.rb', line 96

def overapp(name)
  self.overapps << name
end

#overlay(name) ⇒ Object



100
101
102
# File 'lib/overapp/project.rb', line 100

def overlay(name)
  overapp(name)
end