class Hookers::Commands::Changelog
Attributes
options[RW]
Public Class Methods
new(command, args)
click to toggle source
# File lib/hookers/commands/changelog.rb, line 18 def initialize(command, args) self.options = parse_options(args) end
slop()
click to toggle source
# File lib/hookers/commands/changelog.rb, line 8 def self.slop Slop.new(help: true, banner: "Generates changelogs based on commit messages") do on :from, "Generate changelog from this refence", argument: true on :to, "Generate changelog up to this reference", argument: true on :setup, "Copy git hooks files to project .git/hooks ", argument: true end end
Public Instance Methods
run()
click to toggle source
# File lib/hookers/commands/changelog.rb, line 22 def run puts Hookers::Changelog::Changelogger.new.generate(options) end