Class: Yoda::Store::Actions::ImportGem

Inherits:
Object
  • Object
show all
Defined in:
lib/yoda/store/actions/import_gem.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#depObjects::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

Returns:

  • (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

#runObjects::Patch

Returns:



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