Class: Yoda::Store::Actions::ImportStdLibrary
- Inherits:
-
Object
- Object
- Yoda::Store::Actions::ImportStdLibrary
- Defined in:
- lib/yoda/store/actions/import_std_library.rb
Instance Attribute Summary collapse
- #dep ⇒ Project::Dependency::Std readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dep) ⇒ ImportStdLibrary
constructor
A new instance of ImportStdLibrary.
- #run ⇒ Objects::Patch
Constructor Details
#initialize(dep) ⇒ ImportStdLibrary
Returns a new instance of ImportStdLibrary.
17 18 19 |
# File 'lib/yoda/store/actions/import_std_library.rb', line 17 def initialize(dep) @dep = dep end |
Instance Attribute Details
#dep ⇒ Project::Dependency::Std (readonly)
6 7 8 |
# File 'lib/yoda/store/actions/import_std_library.rb', line 6 def dep @dep end |
Class Method Details
.run(dep) ⇒ Objects::Patch
11 12 13 |
# File 'lib/yoda/store/actions/import_std_library.rb', line 11 def run(dep) new(dep).run end |
Instance Method Details
#run ⇒ Objects::Patch
22 23 24 25 26 |
# File 'lib/yoda/store/actions/import_std_library.rb', line 22 def run BuildCoreIndex.run unless BuildCoreIndex.exists? return false unless File.exist?(dep.doc_path) YardImporter.import(dep.doc_path) end |