Class: Lhj::GitBranchFeatureConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/lhj/helper/git_branch_feature_config.rb

Overview

Git BranchFeature Config

Constant Summary collapse

CONFIG_NAME =
'git_branch_feature.yml'

Class Method Summary collapse

Class Method Details

.configObject



15
16
17
# File 'lib/lhj/helper/git_branch_feature_config.rb', line 15

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

.config_fileObject



11
12
13
# File 'lib/lhj/helper/git_branch_feature_config.rb', line 11

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

.feature(branch) ⇒ Object



19
20
21
# File 'lib/lhj/helper/git_branch_feature_config.rb', line 19

def self.feature(branch)
  config[branch] if config
end