Sha256: 049baecee35bbafb68ca9d776a2476062a56d1e58b893a2e0fad833a3c2c5822

Contents?: true

Size: 568 Bytes

Versions: 63

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true
require 'yaml'
require 'lhj/config'

module Lhj
  # Jenkins Config
  class JenkinsConfig

    CONFIG_NAME = 'jenkins_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.server_ip
      config['server_ip']
    end

    def self.server_port
      config['server_port']
    end

    def self.username
      config['username']
    end

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

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
lhj-tools-0.2.83 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.82 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.81 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.80 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.79 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.78 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.77 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.76 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.75 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.74 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.73 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.72 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.71 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.70 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.69 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.68 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.67 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.66 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.65 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.64 lib/lhj/helper/jenkins_config.rb