blob: 36da3ec6a1c66ee0873ffbaee621b1ec0e45d26d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env ruby
# frozen_string_literal: true
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"
image_dir = "#{File.dirname(File.dirname(File.expand_path(__FILE__)))}/assets/images"
file_path=@options[:filepath]
Crys::BuilderRunner.new(
file_path: file_path,
output_dir: output_dir,
builder_class: builder_class,
image_dir: image_dir,
batch_builder_class: batch_builder_class,
).run
|