Class: Statique::CLI::Build
- Inherits:
-
Object
- Object
- Statique::CLI::Build
- Includes:
- MemoWise
- Defined in:
- lib/statique/cli/build.rb
Instance Method Summary collapse
-
#initialize(options, statique) ⇒ Build
constructor
A new instance of Build.
- #run ⇒ Object
Constructor Details
#initialize(options, statique) ⇒ Build
Returns a new instance of Build.
12 13 14 15 16 |
# File 'lib/statique/cli/build.rb', line 12 def initialize(, statique) Thread.abort_on_exception = true @statique = statique @queue = Queue.new end |
Instance Method Details
#run ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/statique/cli/build.rb', line 18 def run require "statique/app" time = Benchmark.realtime do create_directory(@statique.configuration.paths.destination) copy_public_assets build_pages end @statique.ui.success "Done!", time: time end |