Class: Jekyll::Commands::WaxifyCommand
- Inherits:
-
Command
- Object
- Command
- Jekyll::Commands::WaxifyCommand
- Defined in:
- lib/jekyll/commands/waxify.rb
Overview
Waxify
Class Method Summary collapse
Class Method Details
.init_with_program(prog) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/jekyll/commands/waxify.rb', line 9 def self.init_with_program(prog) prog.command(:waxify) do |c| c.syntax "waxify [coll]" c.description "Add Wax components" c.action { |args, | process(args, ) } end end |
.process(args = [], _options = []) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jekyll/commands/waxify.rb', line 18 def self.process(args = [], = []) coll = args[0] jekyll_config = Waxify::JekyllConfig.new(Jekyll::Waxify::WAXIFY_FRAMEWORK, Jekyll::Waxify::JEKYLL_DIR) return if jekyll_config.waxified jekyll_config.add_cors jekyll_config.add_collection(coll) jekyll_config.merge jekyll_config.save jekyll_config.deploy_framework end |