Class: Genit::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/genit/project/compiler.rb

Overview

Web site “compiler”.

Instance Method Summary collapse

Constructor Details

#initialize(working_dir) ⇒ Compiler

Public: Constructor.

working_dir - The String working directory, where live the project.



13
14
15
16
17
# File 'lib/genit/project/compiler.rb', line 13

def initialize working_dir
  @working_dir = working_dir
  check_missing_file '.genit', 'Not a genit project folder'
  check_missing_file '.config', 'Missing config file'
end

Instance Method Details

#compileObject

Public: Compile the web site.



20
21
22
23
# File 'lib/genit/project/compiler.rb', line 20

def compile
  remove_content_of_www
  compile_site
end