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

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exists?Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
# File 'lib/yoda/store/actions/build_core_index.rb', line 15

def exists?
  [
    VersionStore.for_current_version.core_yardoc_path,
    VersionStore.for_current_version.stdlib_yardoc_path,
  ].all? { |path| File.exists?(path) }
end

.runtrue, false

Returns:

  • (true, false)


11
12
13
# File 'lib/yoda/store/actions/build_core_index.rb', line 11

def run
  new.run
end

Instance Method Details

#runtrue, false

Returns:

  • (true, false)


24
25
26
27
28
29
# File 'lib/yoda/store/actions/build_core_index.rb', line 24

def run
  Logger.info "Downloading ruby source"
  download_core_index_file
  Logger.info "Building ruby core and stdlib index"
  build_core_index
end