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.23 | lib/lhj/helper/jenkins_config.rb |
lhj-tools-0.2.21 | lib/lhj/helper/jenkins_config.rb |
lhj-tools-0.2.20 | lib/lhj/helper/jenkins_config.rb |