module Billy::Config

Attributes

config_dir[W]
root[W]

Public Instance Methods

config_dir() click to toggle source
# File lib/billygoat/config.rb, line 10
def config_dir
  @config_dir ||= ".goat"
end
config_path() click to toggle source
# File lib/billygoat/config.rb, line 15
def config_path
  "#{root}/#{config_dir}"
end
create_config_path() click to toggle source
# File lib/billygoat/config.rb, line 19
def create_config_path
  create_path(config_path)
end
root() click to toggle source
# File lib/billygoat/config.rb, line 5
def root
  @root ||= ENV['HOME']
end
save_configuration() click to toggle source

Save all in-memory configuration to disk

# File lib/billygoat/config.rb, line 26
def save_configuration
  save_settings
  update_knowledge
  save_knowledge
  save_credentials
end