Class: Source::Bundler::Factory

Inherits:
Gem::Factory show all
Defined in:
lib/gpm/source/bundler.rb

Constant Summary

Constants inherited from Source::Base::Factory

Source::Base::Factory::GLOB_REGEXP

Instance Attribute Summary

Attributes inherited from Gem::Factory

#gem_file, #options

Attributes included from HasOptionMethods

#options

Instance Method Summary collapse

Methods inherited from Gem::Factory

#initialize, #metadata

Methods inherited from Source::Base::Factory

#files_provider, #initialize

Methods included from HasOptionMethods

included

Constructor Details

This class inherits a constructor from Source::Gem::Factory

Instance Method Details

#createObject



13
14
15
# File 'lib/gpm/source/bundler.rb', line 13

def create
  Source::Bundler.new(, files_provider, options)
end

#directoryObject



7
8
9
# File 'lib/gpm/source/bundler.rb', line 7

def directory
  File.absolute_path(File.dirname(gem_file))
end

#files_providersObject



16
17
18
# File 'lib/gpm/source/bundler.rb', line 16

def files_providers
  super + [FilesFromBundlerDirectoryProvider.new(File.expand_path(gem_file), gemspec)]
end

#gemspecObject



10
11
12
# File 'lib/gpm/source/bundler.rb', line 10

def gemspec
  Dir[File.join(directory,'*.gemspec')].first
end