Class: Lhj::JenkinsConfig
- Inherits:
-
Object
- Object
- Lhj::JenkinsConfig
- Defined in:
- lib/lhj/helper/jenkins_config.rb
Overview
Jenkins Config
Constant Summary collapse
- CONFIG_NAME =
'jenkins_config.yml'
Class Method Summary collapse
- .config ⇒ Object
- .config_file ⇒ Object
- .password ⇒ Object
- .server_ip ⇒ Object
- .server_port ⇒ Object
- .username ⇒ Object
Class Method Details
.config ⇒ Object
15 16 17 |
# File 'lib/lhj/helper/jenkins_config.rb', line 15 def self.config @yaml ||= YAML.load_file(config_file) end |
.config_file ⇒ Object
11 12 13 |
# File 'lib/lhj/helper/jenkins_config.rb', line 11 def self.config_file File.join(Lhj::Config.instance.home_dir, CONFIG_NAME) end |
.password ⇒ Object
31 32 33 |
# File 'lib/lhj/helper/jenkins_config.rb', line 31 def self.password config['password'] end |
.server_ip ⇒ Object
19 20 21 |
# File 'lib/lhj/helper/jenkins_config.rb', line 19 def self.server_ip config['server_ip'] end |
.server_port ⇒ Object
23 24 25 |
# File 'lib/lhj/helper/jenkins_config.rb', line 23 def self.server_port config['server_port'] end |
.username ⇒ Object
27 28 29 |
# File 'lib/lhj/helper/jenkins_config.rb', line 27 def self.username config['username'] end |