Parent

Methods

Class/Module Index [+]

Quicksearch

Rabbit::Command::RabbitTheme

Public Class Methods

new() click to toggle source
# File lib/rabbit/command/rabbit-theme.rb, line 37
def initialize
  @theme_conf = nil
  @author_conf = nil
  @logger = nil
end
run(*arguments) click to toggle source
# File lib/rabbit/command/rabbit-theme.rb, line 32
def run(*arguments)
  new.run(arguments)
end

Public Instance Methods

run(arguments) click to toggle source
# File lib/rabbit/command/rabbit-theme.rb, line 43
def run(arguments)
  @options, @logger = parse_command_line_arguments(arguments)

  validate
  unless @validation_errors.empty?
    messages = (@validation_errors + [_("See --help for example")])
    @logger.error(messages.join("\n"))
    return false
  end

  generate
  @author_conf.save
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.