Class: Poper2::CLI
- Inherits:
-
Thor
- Object
- Thor
- Poper2::CLI
- Defined in:
- lib/poper2/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.is_thor_reserved_word?(word, type) ⇒ Boolean
9 10 11 12 13 |
# File 'lib/poper2/cli.rb', line 9 def is_thor_reserved_word?(word, type) return false if word == 'run' super end |
Instance Method Details
#run(commit) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/poper2/cli.rb', line 18 def run(commit) Runner.new(commit).run.each do || # message.commit and message.message are Strings # prints first 7 characteres of the commit sha1 hash # followed by the associated message puts "#{message.commit[0..6]}: #{message.message}" end end |
#version ⇒ Object
30 31 32 |
# File 'lib/poper2/cli.rb', line 30 def version puts "Poper version #{::Poper::VERSION}" end |