Sha256: f1751bf5cd47b25791046b205a366dde9dde1d08f5fa6a325d4f712ea8dde817

Contents?: true

Size: 963 Bytes

Versions: 2

Compression:

Stored size: 963 Bytes

Contents

# frozen_string_literal: true

module Kobot
  # Configuration definition includes static ones hardcoded and
  # dynamic ones that can be specified by command line options.
  class Config
    class << self
      attr_accessor :clock,
                    :loglevel,
                    :skip,
                    :auto_skip,
                    :auto_skip_without,
                    :dryrun,
                    :force,
                    :kot_url,
                    :kot_timezone_offset,
                    :kot_date_format,
                    :gmail_notify_enabled,
                    :gmail_notify_subject,
                    :gmail_notify_to,
                    :gmail_smtp_address,
                    :gmail_smtp_port,
                    :browser_headless,
                    :browser_geolocation,
                    :browser_wait_timeout,
                    :credentials_file

      def configure
        yield self
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kobot-2.1.0 lib/kobot/config.rb
kobot-2.0.0 lib/kobot/config.rb