lib/rconf/profile.rb in rconf-0.6.11 vs lib/rconf/profile.rb in rconf-0.6.13
- old
+ new
@@ -11,10 +11,13 @@
require 'yaml'
module RightConf
+ # rconf configuration file extension
+ CONFIG_EXTENSION = '.rconf'
+
class Profile
include Singleton
# Load profile from disk on instantiation
@@ -74,10 +77,10 @@
# Retrieve profile file path
#
# === Return
# path(String):: Profile file path
def profile_path
- profile_path = ENV['RCONF_PROFILE'] || File.join(ENV['HOME'], '.rconf')
+ profile_path = ENV['RCONF_PROFILE'] || File.join(ENV['HOME'], CONFIG_EXTENSION)
end
# Persist profile to file
#
# === Return