lib/hbtrack/command.rb in hbtrack-0.0.7 vs lib/hbtrack/command.rb in hbtrack-0.0.8

- old
+ new

@@ -1,15 +1,20 @@ # frozen_string_literal: true +require 'hbtrack/database/sequel_store' + module Hbtrack class Command - def initialize(hbt, options) - @hbt = hbt + 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 + + def local_store + @store ||= Hbtrack::Database::SequelStore.new(name: @store_path) end def execute help end