Class: Dougie::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/dougie/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



7
8
# File 'lib/dougie/builder.rb', line 7

def initialize
end

Instance Attribute Details

#folderObject

Returns the value of attribute folder.



5
6
7
# File 'lib/dougie/builder.rb', line 5

def folder
  @folder
end

Instance Method Details

#folder_pathObject



16
17
18
# File 'lib/dougie/builder.rb', line 16

def folder_path
  "#{ROOT}/#{folder}"
end

#setup(folder = nil) ⇒ Object



10
11
12
13
14
# File 'lib/dougie/builder.rb', line 10

def setup folder=nil
  self.folder = "#{folder.chomp("/").reverse.chomp("/").reverse}/" if folder
  setup_directory folder_path
  setup_config
end