Class: Ichiban::ManualCompiler
- Inherits:
-
Object
- Object
- Ichiban::ManualCompiler
- Defined in:
- lib/ichiban/manual_compiler.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/ichiban/manual_compiler.rb', line 3 def all paths( Dir.glob(File.join(Ichiban.project_root, 'html', '**', '*')) + Dir.glob(File.join(Ichiban.project_root, 'assets', '**', '*')) + Dir.glob(File.join(Ichiban.project_root, 'scripts', '**', '*')) + Dir.glob(File.join(Ichiban.project_root, 'webserver', '**', '*')) ) end |
#paths(paths_to_compile) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ichiban/manual_compiler.rb', line 12 def paths(paths_to_compile) Ichiban::Loader.new paths_to_compile.each do |path| unless path.start_with? Ichiban.project_root path = File.join(Ichiban.project_root, path) end begin if project_file = Ichiban::ProjectFile.from_abs(path) project_file.update end rescue Exception => exc Ichiban.logger.exception(exc) end end end |