Sha256: 3672f705e15ec167a7955fa1fb9cceea16369ce6ebcdec85248ad8da5c08163d
Contents?: true
Size: 859 Bytes
Versions: 1
Compression:
Stored size: 859 Bytes
Contents
module Octopress module CommandHelpers def self.add_page_options(c) c.option 'template', '--template PATH', "New #{c.name.to_s} from a template." c.option 'date', '--date DATE', "Use 'now' or a String that is parseable by Time#parse." c.option 'force', '--force', 'Overwrite file if it already exists' end def self.add_common_options(c) c.option 'config', '--config <CONFIG_FILE>[,CONFIG_FILE2,...]', Array, 'Custom Jekyll configuration file' c.option 'octopress-config', '--octopress-config <CONFIG_FILE>', 'Custom Octopress configuration file' end def self.site(options) options = {'config' => options['config']} Jekyll.logger.log_level = :error site = Jekyll::Site.new(Jekyll.configuration(options)) Jekyll.logger.log_level = :info site end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octopress-3.0.0.rc.18 | lib/octopress/commands/helpers.rb |