Class: GitPissed::CLI
- Inherits:
-
Object
- Object
- GitPissed::CLI
- Defined in:
- lib/git_pissed/cli.rb
Instance Method Summary collapse
- #csv ⇒ Object
- #execute ⇒ Object
- #formatted_output ⇒ Object
- #html ⇒ Object
- #options ⇒ Object
- #words_by_date ⇒ Object
Instance Method Details
#csv ⇒ Object
16 17 18 |
# File 'lib/git_pissed/cli.rb', line 16 def csv @csv ||= CSV.new(words_by_date, ) end |
#execute ⇒ Object
3 4 5 6 |
# File 'lib/git_pissed/cli.rb', line 3 def execute puts "Measuring #{.words.join(', ')}..." puts "\n#{formatted_output}" end |
#formatted_output ⇒ Object
12 13 14 |
# File 'lib/git_pissed/cli.rb', line 12 def formatted_output send .format end |
#html ⇒ Object
20 21 22 |
# File 'lib/git_pissed/cli.rb', line 20 def html @html ||= HTML.new(words_by_date, ) end |
#options ⇒ Object
8 9 10 |
# File 'lib/git_pissed/cli.rb', line 8 def @options ||= Options.new.parse! end |
#words_by_date ⇒ Object
24 25 26 27 28 29 |
# File 'lib/git_pissed/cli.rb', line 24 def words_by_date WordFinder.new( Git.new().revisions, ).by_date end |