Sha256: 254e17e0edc7453dfb45b8028baf36528037c71cc1810f1fcde2a2bf5a2941dd

Contents?: true

Size: 683 Bytes

Versions: 6

Compression:

Stored size: 683 Bytes

Contents

module OhlohScm::Adapters
	class AbstractAdapter
		attr_accessor :url, :branch_name, :username, :password, :errors, :public_urls_only

		def initialize(params={})
			params.each { |k,v| send(k.to_s + '=', v) if respond_to?(k.to_s + '=') }
		end

		# Handy for test overrides
		def metaclass
			class << self
				self
			end
		end

    # Returns path to the string_encoder binary.
    # For use with inline system commands like `run`.
    def string_encoder
      File.expand_path('../../../../bin/string_encoder', __FILE__)
    end

	end
end

require_relative 'abstract/system'
require_relative 'abstract/validation'
require_relative 'abstract/sha1'
require_relative 'abstract/misc'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ohloh_scm-2.2.2 lib/ohloh_scm/adapters/abstract_adapter.rb
ohloh_scm-2.2.1 lib/ohloh_scm/adapters/abstract_adapter.rb
ohloh_scm-2.2.0 lib/ohloh_scm/adapters/abstract_adapter.rb
ohloh_scm-2.1.0 lib/ohloh_scm/adapters/abstract_adapter.rb
ohloh_scm-2.0.1 lib/ohloh_scm/adapters/abstract_adapter.rb
ohloh_scm-2.0.0 lib/ohloh_scm/adapters/abstract_adapter.rb