Sha256: 345cba04b34b050b30be75f7144a27c6b81dc39db01273529e6a6ee9c14ebe1a
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
module GitHandler class Configuration attr_reader :user attr_reader :home_path attr_reader :repos_path attr_reader :log_path # Initialize a new Configuration instance with options hash # # Valid options: # :user - Git user # :home_path - Git user home path # :repos_path - Path to repositories # :log_path - Git access log path # def initialize(options={}) @user = options[:user] || 'git' @home_path = options[:home_path] || '/home/git' @repos_path = options[:repos_path] || File.join(@home_path, 'repositories') @log_path = options[:log_path] || File.join(@home_path, 'access.log') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
git_handler-0.2.1 | lib/git_handler/configuration.rb |
git_handler-0.2.0 | lib/git_handler/configuration.rb |