Sha256: c5486321d061463b3a83c14a6484a17e80418c74c4c4f4585cca6fb83f6f1f91

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

module CmlTimer
  class Confing
    attr_accessor :pid_file_directory, :system_voice, :notification_word

    def initialize
      # pid file directory
      @pid_file_directory = '/tmp'

      @system_voice = 'Vicki'
      @notification_word = 'Good work!! Time up!'
    end

    def say_command
      %x(say -v #{@system_voice} #{@notification_word})
    end

    def error_text(exception)
      "[ERROR]\t#{exception}"
    end

    def error_processing
      STDERR.puts error_text
    end

    def pid_file_prefix
      'cml_timer'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cml_timer-0.1.0 lib/cml_timer/config.rb