Class: KitchenBlame::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/kitchen_blame/cli.rb

Overview

Processes command line invocation

Instance Method Summary collapse

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

#listObject



44
45
46
# File 'lib/kitchen_blame/cli.rb', line 44

def list
  KitchenBlame::Blame.list(options[: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

#versionObject



38
39
40
# File 'lib/kitchen_blame/cli.rb', line 38

def version
  puts "kitchen blame version: #{KitchenBlame::VERSION}"
end