Class: Bundler::GemDirectorySource

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

Instance Attribute Summary collapse

Attributes inherited from Source

#bundle

Instance Method Summary collapse

Constructor Details

#initialize(bundle, options) ⇒ GemDirectorySource

Returns a new instance of GemDirectorySource.



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

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



144
145
146
# File 'lib/bundler08/source.rb', line 144

def location
  @location
end

Instance Method Details

#==(other) ⇒ Object



159
160
161
# File 'lib/bundler08/source.rb', line 159

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

#download(spec) ⇒ Object



167
168
169
# File 'lib/bundler08/source.rb', line 167

def download(spec)
  # raise NotImplementedError
end

#gemsObject



155
156
157
# File 'lib/bundler08/source.rb', line 155

def gems
  @specs ||= fetch_specs
end

#local?Boolean

Returns:

  • (Boolean)


151
152
153
# File 'lib/bundler08/source.rb', line 151

def local?
  true
end

#to_sObject



163
164
165
# File 'lib/bundler08/source.rb', line 163

def to_s
  location.to_s
end