Class: Yoda::Store::Actions::ImportGem
- Inherits:
-
Object
- Object
- Yoda::Store::Actions::ImportGem
- Defined in:
- lib/yoda/store/actions/import_gem.rb
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dep) ⇒ ImportGem
constructor
A new instance of ImportGem.
- #run ⇒ Objects::Patch
Constructor Details
#initialize(dep) ⇒ ImportGem
Returns a new instance of ImportGem.
18 19 20 |
# File 'lib/yoda/store/actions/import_gem.rb', line 18 def initialize(dep) @dep = dep end |
Instance Attribute Details
#dep ⇒ Objects::Library::Gem::Connected (readonly)
8 9 10 |
# File 'lib/yoda/store/actions/import_gem.rb', line 8 def dep @dep end |
Class Method Details
.run(args = {}) ⇒ true, false
12 13 14 |
# File 'lib/yoda/store/actions/import_gem.rb', line 12 def run(args = {}) new(args).run end |
Instance Method Details
#run ⇒ Objects::Patch
23 24 25 26 27 28 |
# File 'lib/yoda/store/actions/import_gem.rb', line 23 def run create_dependency_doc if yardoc_file = yardoc_path load_yardoc(yardoc_file, gem_path) end end |