class Hbtrack::Command

Public Class Methods

new(store_path, options) click to toggle source
# File lib/hbtrack/command.rb, line 7
def initialize(store_path, options)
  @all = false
  @option_parser = create_option_parser
  @store_path = store_path
  unprocess_option = @option_parser.parse(options)
  @names = unprocess_option
end

Public Instance Methods

create_option_parser() click to toggle source
# File lib/hbtrack/command.rb, line 23
def create_option_parser
  raise 'Not Implemented'
end
execute() click to toggle source
# File lib/hbtrack/command.rb, line 19
def execute
  help
end
help() click to toggle source
# File lib/hbtrack/command.rb, line 27
def help
  @option_parser.help
end
local_store() click to toggle source
# File lib/hbtrack/command.rb, line 15
def local_store
  @store ||= Hbtrack::Database::SequelStore.new(name: @store_path)
end