Sha256: 8b39853fcbaa59695c3b7f75275bd4baf3d0c1fcdc01905f7e3e8adcb151d0c4

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

require "keychain"

module GetToWork
  class Command
    include Thor::Shell
    include GetToWork::Menu

    def self.run(opts = {})
      trap("SIGINT") { exit! }
      new(opts).run
    end

    def initialize(opts = {})
    end

    def config_file
      ConfigFile.instance
    end

    def last_timer
      config_file["last_timer"]
    end

    def last_story
      config_fild["last_story"]
    end

    def harvest_service
      @harvest ||= GetToWork::Service::Harvest.new(
        GetToWork::ConfigFile.instance.data
      )
    end

    def run
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
get_to_work-0.1.5 lib/get_to_work/command.rb
get_to_work-0.1.4 lib/get_to_work/command.rb
get_to_work-0.1.3 lib/get_to_work/command.rb
get_to_work-0.1.2 lib/get_to_work/command.rb