Sha256: e4c7665561d6ae370fcf6dd96142bc8af3685b4fd73c6200fdcf7ecb87c50bec
Contents?: true
Size: 651 Bytes
Versions: 7
Compression:
Stored size: 651 Bytes
Contents
require 'pathname' module Riak class Node # @return [String] the version of the Riak node def version @version ||= configure_version end # @return [Pathname] the location of Riak installation, aka RUNNER_BASE_DIR def base_dir @base_dir ||= configure_base_dir end protected # Detects the Riak version from the generated release def configure_version if base_dir versions = (base_dir + 'releases' + 'start_erl.data').read versions.split(" ")[1] end end # Determines the base_dir from source parent def configure_base_dir source.parent end end end
Version data entries
7 entries across 7 versions & 1 rubygems