Class: Source::Bundler::Factory
- Inherits:
-
Gem::Factory
- Object
- Source::Base::Factory
- Gem::Factory
- Source::Bundler::Factory
- 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
Attributes included from HasOptionMethods
Instance Method Summary collapse
Methods inherited from Gem::Factory
Methods inherited from Source::Base::Factory
Methods included from HasOptionMethods
Constructor Details
This class inherits a constructor from Source::Gem::Factory
Instance Method Details
#create ⇒ Object
13 14 15 |
# File 'lib/gpm/source/bundler.rb', line 13 def create Source::Bundler.new(, files_provider, ) end |
#directory ⇒ Object
7 8 9 |
# File 'lib/gpm/source/bundler.rb', line 7 def directory File.absolute_path(File.dirname(gem_file)) end |
#files_providers ⇒ Object
16 17 18 |
# File 'lib/gpm/source/bundler.rb', line 16 def files_providers super + [FilesFromBundlerDirectoryProvider.new(File.(gem_file), gemspec)] end |
#gemspec ⇒ Object
10 11 12 |
# File 'lib/gpm/source/bundler.rb', line 10 def gemspec Dir[File.join(directory,'*.gemspec')].first end |