Class: Pwl::Commands::Stats

Inherits:
Base
  • Object
show all
Defined in:
lib/pwl/commands/stats.rb

Instance Method Summary collapse

Methods inherited from Base

default_locker_file, exit_codes_help

Instance Method Details

#call(args, options) ⇒ Object



34
35
36
37
38
39
40
41
42
# File 'lib/pwl/commands/stats.rb', line 34

def call(args, options)
  locker = open_locker(options)

  begin
    puts presenter(options.format).present(locker)
  rescue
    exit_with(:unknown_format, options.verbose, :format => options.format)
  end
end