Sha256: 16188b73f51da2827ae876692bcd42000f4bb1d0fb97688024bc11da8a4b533b
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
module Yoda module Store module Actions # @todo Build index without using shell script class BuildCoreIndex class << self # @return [true, false] def run new.run end def exists? [ "~/.yoda/sources/ruby-#{RUBY_VERSION}/.yardoc", "~/.yoda/sources/ruby-#{RUBY_VERSION}/.yardoc-stdlib", ].all? { |path| File.exists?(File.expand_path(path)) } end end # @return [true, false] def run build_core_index end private # @return [String] def script_path File.expand_path('../../../../scripts/build_core_index.sh', __dir__) end def build_core_index o, e = Open3.capture2e(script_path) Logger.debug o unless o.empty? if e.success? Logger.info "Success to build yard index" else Logger.warn "Failed to build core index" end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems