Sha256: 1b2e31642b3d8f022ee1324f405e042221918a65bf5b46470cb53381fdbf26e3

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true
require 'yaml'

module Lhj
  # ios Robot Config
  class IOSRobotConfig

    CONFIG_NAME = 'ios_robot_config.yml'

    def self.config_file
      File.join(Lhj::Config.instance.home_dir, CONFIG_NAME)
    end

    def self.config
      @yaml ||= YAML.load_file(config_file)
    end

    def self.agent_id
      config['agent_id']
    end

    def self.app_key
      config['app_key']
    end

    def self.app_secret
      config['app_secret']
    end

    def self.base_url
      config['base_url']
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lhj-tools-0.2.36 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.35 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.34 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.33 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.32 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.31 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.30 lib/lhj/helper/ios_robot_config.rb
lhj-tools-0.2.29 lib/lhj/helper/ios_robot_config.rb