Class: KitchenBlame::CLI
- Inherits:
-
Thor
- Object
- Thor
- KitchenBlame::CLI
- Defined in:
- lib/kitchen_blame/cli.rb
Overview
Processes command line invocation
Instance Method Summary collapse
- #create(key, log) ⇒ Object
- #duration(log) ⇒ Object
- #list ⇒ Object
- #recipe(log) ⇒ Object
- #version ⇒ Object
Instance Method Details
#create(key, log) ⇒ Object
23 24 25 |
# File 'lib/kitchen_blame/cli.rb', line 23 def create(key, log) KitchenBlame::Blame.analyze_create(key, log) end |
#duration(log) ⇒ Object
33 34 35 |
# File 'lib/kitchen_blame/cli.rb', line 33 def duration(log) KitchenBlame::Blame.analyze_duration(log) end |
#list ⇒ Object
44 45 46 |
# File 'lib/kitchen_blame/cli.rb', line 44 def list KitchenBlame::Blame.list([:log_dir]) end |
#recipe(log) ⇒ Object
28 29 30 |
# File 'lib/kitchen_blame/cli.rb', line 28 def recipe(log) KitchenBlame::Blame.analyze_recipe(log) end |
#version ⇒ Object
38 39 40 |
# File 'lib/kitchen_blame/cli.rb', line 38 def version puts "kitchen blame version: #{KitchenBlame::VERSION}" end |