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.63 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.62 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.61 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.60 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.59 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.58 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.57 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.56 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.55 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.54 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.53 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.52 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.51 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.50 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.49 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.48 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.47 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.46 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.45 lib/lhj/helper/jenkins_config.rb
lhj-tools-0.2.44 lib/lhj/helper/jenkins_config.rb