class DiceBag::ConfigFile

Public Class Methods

new(name) click to toggle source
# File lib/dice_bag/config_file.rb, line 11
def initialize(name)
  # The 'local', 'erb', and 'template' file extension are deprecated and
  # will be removed some time prior to v1.
  @filename = name.gsub(".local", "").gsub(".erb", "").gsub(".template", "").gsub(".dice", "")
  @file = Project.config_files(@filename)
end