Module: Geminabox

Defined in:
lib/geminabox.rb,
lib/geminabox/proxy.rb,
lib/geminabox/server.rb,
lib/geminabox/hostess.rb,
lib/geminabox/version.rb,
lib/geminabox/gem_store.rb,
lib/geminabox/disk_cache.rb,
lib/geminabox/gem_version.rb,
lib/geminabox/http_adapter.rb,
lib/geminabox/proxy/copier.rb,
lib/geminabox/incoming_gem.rb,
lib/geminabox/proxy/splicer.rb,
lib/geminabox/proxy/hostess.rb,
lib/geminabox/gem_list_merge.rb,
lib/geminabox/gem_store_error.rb,
lib/geminabox/proxy/file_handler.rb,
lib/geminabox/rubygems_dependency.rb,
lib/geminabox/gem_version_collection.rb,
lib/geminabox/http_adapter_config_error.rb,
lib/geminabox/http_adapter/http_client_adapter.rb,
lib/geminabox/http_adapter/template_faraday_adapter.rb

Defined Under Namespace

Modules: Indexer, Proxy, RubygemsDependency Classes: AlreadyLocked, DiskCache, Error, GemListMerge, GemStore, GemStoreError, GemVersion, GemVersionCollection, Hostess, HttpAdapter, HttpAdapterConfigError, HttpClientAdapter, IncomingGem, Server, TemplateFaradayAdapter

Constant Summary collapse

VERSION =
'0.12.4'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.allow_deleteObject

Returns the value of attribute allow_delete


38
39
40
# File 'lib/geminabox.rb', line 38

def allow_delete
  @allow_delete
end

.allow_remote_failureObject

Returns the value of attribute allow_remote_failure


38
39
40
# File 'lib/geminabox.rb', line 38

def allow_remote_failure
  @allow_remote_failure
end

.allow_replaceObject

Returns the value of attribute allow_replace


38
39
40
# File 'lib/geminabox.rb', line 38

def allow_replace
  @allow_replace
end

.build_legacyObject

Returns the value of attribute build_legacy


38
39
40
# File 'lib/geminabox.rb', line 38

def build_legacy
  @build_legacy
end

.dataObject

Returns the value of attribute data


38
39
40
# File 'lib/geminabox.rb', line 38

def data
  @data
end

.gem_permissionsObject

Returns the value of attribute gem_permissions


38
39
40
# File 'lib/geminabox.rb', line 38

def gem_permissions
  @gem_permissions
end

.http_adapterObject

Returns the value of attribute http_adapter


38
39
40
# File 'lib/geminabox.rb', line 38

def http_adapter
  @http_adapter
end

.incremental_updatesObject

Returns the value of attribute incremental_updates


38
39
40
# File 'lib/geminabox.rb', line 38

def incremental_updates
  @incremental_updates
end

.lockfileObject

Returns the value of attribute lockfile


38
39
40
# File 'lib/geminabox.rb', line 38

def lockfile
  @lockfile
end

.public_folderObject

Returns the value of attribute public_folder


38
39
40
# File 'lib/geminabox.rb', line 38

def public_folder
  @public_folder
end

.retry_intervalObject

Returns the value of attribute retry_interval


38
39
40
# File 'lib/geminabox.rb', line 38

def retry_interval
  @retry_interval
end

.rubygems_proxyObject

Returns the value of attribute rubygems_proxy


38
39
40
# File 'lib/geminabox.rb', line 38

def rubygems_proxy
  @rubygems_proxy
end

.viewsObject

Returns the value of attribute views


38
39
40
# File 'lib/geminabox.rb', line 38

def views
  @views
end

Class Method Details

.call(env) ⇒ Object


65
66
67
# File 'lib/geminabox.rb', line 65

def call(env)
  Server.call env
end

.geminabox_path(file) ⇒ Object


21
22
23
# File 'lib/geminabox.rb', line 21

def self.geminabox_path(file)
  File.join File.dirname(__FILE__), 'geminabox', file
end

.set_defaults(defaults) ⇒ Object


54
55
56
57
58
59
# File 'lib/geminabox.rb', line 54

def set_defaults(defaults)
  defaults.each do |method, default|
    variable = "@#{method}"
    instance_variable_set(variable, default) unless instance_variable_get(variable)
  end
end

.settingsObject


61
62
63
# File 'lib/geminabox.rb', line 61

def settings
  Server.settings
end