Class: Bundler::GemDirectorySource

Inherits:
Source
  • Object
show all
Defined in:
lib/bundler/source.rb

Instance Attribute Summary collapse

Attributes inherited from Source

#local, #repository

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GemDirectorySource

Returns a new instance of GemDirectorySource.



134
135
136
# File 'lib/bundler/source.rb', line 134

def initialize(options)
  @location = options[:location]
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



132
133
134
# File 'lib/bundler/source.rb', line 132

def location
  @location
end

Instance Method Details

#==(other) ⇒ Object



146
147
148
# File 'lib/bundler/source.rb', line 146

def ==(other)
  location == other.location
end

#can_be_local?Boolean

Returns:

  • (Boolean)


138
139
140
# File 'lib/bundler/source.rb', line 138

def can_be_local?
  true
end

#download(spec) ⇒ Object



154
155
156
# File 'lib/bundler/source.rb', line 154

def download(spec)
  # raise NotImplementedError
end

#gemsObject



142
143
144
# File 'lib/bundler/source.rb', line 142

def gems
  @specs ||= fetch_specs
end

#to_sObject



150
151
152
# File 'lib/bundler/source.rb', line 150

def to_s
  location.to_s
end