diff options
Diffstat (limited to 'new/splash/bin')
-rwxr-xr-x | new/splash/bin/build.rb | 11 | ||||
-rwxr-xr-x | new/splash/bin/server.rb | 10 |
2 files changed, 16 insertions, 5 deletions
diff --git a/new/splash/bin/build.rb b/new/splash/bin/build.rb new file mode 100755 index 00000000..404431f2 --- /dev/null +++ b/new/splash/bin/build.rb @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +# frozen_string_literal: true + +require_relative '../lib/splash' +require_relative '../../bin/builder' + +builder_class = Crys::Splash::Builder +output_dir = "#{File.dirname(File.dirname(__FILE__))}/output" +file_path = "#{File.dirname(File.dirname(__FILE__))}/pages/#{@options[:filepath]}" + +Crys::BuilderRunner.new(file_path: file_path, output_dir: output_dir, builder_class: builder_class).run diff --git a/new/splash/bin/server.rb b/new/splash/bin/server.rb index 9da053ae..15b34329 100755 --- a/new/splash/bin/server.rb +++ b/new/splash/bin/server.rb @@ -1,10 +1,10 @@ #!/usr/bin/env ruby +# frozen_string_literal: true -require_relative "../lib/splash.rb" -require_relative "../../bin/server.rb" +require_relative '../lib/splash' +require_relative '../../bin/server' server_class = Crys::Splash::Server -root = File.dirname(File.dirname(__FILE__)) + "/output" -Crys::ServerRunner.new(root: root, server_class: server_class, section: "Splash Page").serve - +root = "#{File.dirname(File.dirname(__FILE__))}/output" +Crys::ServerRunner.new(root: root, server_class: server_class, section: 'Splash Page').serve |