class Berkshelf::API::Config
Public Class Methods
default_path()
click to toggle source
@return [String]
# File lib/berkshelf/api/config.rb, line 8 def default_path home_path = ENV['BERKSHELF_API_PATH'] || "#{ENV['HOME']}/.berkshelf/api-server" File.expand_path(File.join(home_path, "config.json")) end
Public Instance Methods
endpoints_checksum()
click to toggle source
# File lib/berkshelf/api/config.rb, line 30 def endpoints_checksum Digest::SHA1.hexdigest(endpoints.collect {|x| x.to_hash }.to_s) end