Class: Yoda::Store::Actions::BuildCoreIndex
- Inherits:
-
Object
- Object
- Yoda::Store::Actions::BuildCoreIndex
- Defined in:
- lib/yoda/store/actions/build_core_index.rb
Overview
TODO:
Build index without using shell script
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exists? ⇒ Boolean
12 13 14 15 16 17 |
# File 'lib/yoda/store/actions/build_core_index.rb', line 12 def exists? [ "~/.yoda/sources/ruby-#{RUBY_VERSION}/.yardoc", "~/.yoda/sources/ruby-#{RUBY_VERSION}/.yardoc-stdlib", ].all? { |path| File.exists?(File.(path)) } end |
.run ⇒ true, false
8 9 10 |
# File 'lib/yoda/store/actions/build_core_index.rb', line 8 def run new.run end |
Instance Method Details
#run ⇒ true, false
21 22 23 |
# File 'lib/yoda/store/actions/build_core_index.rb', line 21 def run build_core_index end |