Sha256: 223250f8612c6fde8b3d0b61385a285efef62fca192a085f666c1dda2e66b29f

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

module ActiveGit
  class Configuration

    attr_accessor :sync_batch_size

    def initialize
      @sync_batch_size = 10000
    end

    def working_path
      @working_path.is_a?(Proc) ? @working_path.call : @working_path
    end

    def working_path=(path)
      @working_path = path
    end

    def bare_path
      @bare_path.is_a?(Proc) ? @bare_path.call : @bare_path
    end

    def bare_path=(path)
      @bare_path = path
    end

    def logger
      GitWrapper.logger
    end

    def logger=(logger)
      GitWrapper.logger = logger
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_git-0.0.10 lib/active_git/configuration.rb
active_git-0.0.9 lib/active_git/configuration.rb
active_git-0.0.8 lib/active_git/configuration.rb
active_git-0.0.7 lib/active_git/configuration.rb