Class: Source::Bundler::Factory
Constant Summary
Source::Base::Factory::GLOB_REGEXP
Instance Attribute Summary
Attributes inherited from Gem::Factory
#gem_file, #options
#options
Instance Method Summary
collapse
#initialize, #metadata
#files_provider, #initialize
included
Instance Method Details
13
14
15
|
# File 'lib/gpm/source/bundler.rb', line 13
def create
Source::Bundler.new(metadata, files_provider, options)
end
|
#directory ⇒ Object
7
8
9
|
# File 'lib/gpm/source/bundler.rb', line 7
def directory
File.absolute_path(File.dirname(gem_file))
end
|
10
11
12
|
# File 'lib/gpm/source/bundler.rb', line 10
def gemspec
Dir[File.join(directory,'*.gemspec')].first
end
|