class GetToWork::Command

Public Class Methods

new(opts = {}) click to toggle source
# File lib/get_to_work/command.rb, line 13
def initialize(opts = {})
end
run(opts = {}) click to toggle source
# File lib/get_to_work/command.rb, line 8
def self.run(opts = {})
  trap("SIGINT") { exit! }
  new(opts).run
end

Public Instance Methods

config_file() click to toggle source
# File lib/get_to_work/command.rb, line 16
def config_file
  ConfigFile.instance
end
harvest_service() click to toggle source
# File lib/get_to_work/command.rb, line 28
def harvest_service
  @harvest ||= GetToWork::Service::Harvest.new(
    GetToWork::ConfigFile.instance.data
  )
end
last_story() click to toggle source
# File lib/get_to_work/command.rb, line 24
def last_story
  config_fild["last_story"]
end
last_timer() click to toggle source
# File lib/get_to_work/command.rb, line 20
def last_timer
  config_file["last_timer"]
end
run() click to toggle source
# File lib/get_to_work/command.rb, line 34
def run
end