diff options
Diffstat (limited to 'new/splash/bin/build.rb')
-rwxr-xr-x | new/splash/bin/build.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/new/splash/bin/build.rb b/new/splash/bin/build.rb index 1439dd6..7f5ac93 100755 --- a/new/splash/bin/build.rb +++ b/new/splash/bin/build.rb @@ -5,15 +5,20 @@ require_relative '../lib/splash' require_relative '../../bin/builder' builder_class = Crys::Splash::Builder +batch_builder_class = Crys::Splash::BatchBuilder output_dir = "#{File.dirname(File.dirname(__FILE__))}/output" -#file_path = "#{File.dirname(File.dirname(__FILE__))}/pages/#{@options[:filepath]}" image_dir = "#{File.dirname(File.dirname(File.expand_path(__FILE__)))}/assets/images" +theme_dir = "#{File.dirname(File.dirname(__FILE__))}/theme" +pages_db = Crys::Splash::PagesDbManager -file_path=@options[:filepath] +file_path = @options[:filepath] Crys::BuilderRunner.new( file_path: file_path, output_dir: output_dir, builder_class: builder_class, - image_dir: image_dir + image_dir: image_dir, + batch_builder_class: batch_builder_class, + theme_dir: theme_dir, + pages_db: pages_db ).run |