class AppCfg::PropertiesSource
TODO: consider treating . in properties names as a nesting operatator. E.g. maven.groupId=xyz creates AppCfg = { ‘groupId’ => ‘xyz’ } TODO: environment support? Perhaps file-name convention or also with .-delimited properties names? E.g. maven.groupId.test
Public Class Methods
new(options = {})
click to toggle source
# File lib/appcfg/sources/properties_source.rb, line 7 def initialize(options = {}) @filename = options[:file] @namespace = options[:env] end
Public Instance Methods
reload_data!()
click to toggle source
# File lib/appcfg/sources/properties_source.rb, line 12 def reload_data! properties = JavaProperties.new(@filename) @hash = properties.properties end