class DrJekyll::Toolii

NOTE: gli added function are class methods (thus, wrap class Toolii in Tool for now)

Public Class Methods

fetch_catalog() click to toggle source

desc 'Only show warnings, errors and fatal messages' switch [:q, :quiet], negatable: false

# File lib/drjekyll/cli/main.rb, line 50
def self.fetch_catalog
  ## themes_dir = "#{DrJekyll.root}/test/data"
  ## catalog    = Catalog.new( "#{themes_dir}/themes.yml" )

  url = "https://github.com/drjekyllthemes/themes/raw/master/themes.yml"

  puts "GET #{url}"     ## todo/fix: add color (bright/bold green)

  catalog = Catalog.from_url( url )
  catalog
end
logger() click to toggle source
# File lib/drjekyll/cli/main.rb, line 25
def self.logger()       @@logger; end
logger=(value) click to toggle source
# File lib/drjekyll/cli/main.rb, line 24
def self.logger=(value) @@logger=value; end
opts() click to toggle source
# File lib/drjekyll/cli/main.rb, line 29
def self.opts()        @@opts; end
opts=(value) click to toggle source

todo: find a better name e.g. change to settings? config? safe_opts? why? why not?

# File lib/drjekyll/cli/main.rb, line 28
def self.opts=(value)  @@opts = value; end