Class: Bundler::GemDirectorySource

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

Instance Attribute Summary collapse

Attributes inherited from Source

#bundle, #local

Instance Method Summary collapse

Constructor Details

#initialize(bundle, options) ⇒ GemDirectorySource

Returns a new instance of GemDirectorySource.



147
148
149
150
# File 'lib/bowline/bundler/source.rb', line 147

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

Instance Method Details

#==(other) ⇒ Object



160
161
162
# File 'lib/bowline/bundler/source.rb', line 160

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

#can_be_local?Boolean

Returns:

  • (Boolean)


152
153
154
# File 'lib/bowline/bundler/source.rb', line 152

def can_be_local?
  true
end

#download(spec) ⇒ Object



168
169
170
# File 'lib/bowline/bundler/source.rb', line 168

def download(spec)
  # raise NotImplementedError
end

#gemsObject



156
157
158
# File 'lib/bowline/bundler/source.rb', line 156

def gems
  @specs ||= fetch_specs
end

#to_sObject



164
165
166
# File 'lib/bowline/bundler/source.rb', line 164

def to_s
  location.to_s
end