Class: Yoda::Store::Actions::BuildCoreIndex

Inherits:
Object
  • Object
show all
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

Returns:

  • (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.expand_path(path)) }
end

.runtrue, false

Returns:

  • (true, false)


8
9
10
# File 'lib/yoda/store/actions/build_core_index.rb', line 8

def run
  new.run
end

Instance Method Details

#runtrue, false

Returns:

  • (true, false)


21
22
23
# File 'lib/yoda/store/actions/build_core_index.rb', line 21

def run
  build_core_index
end