Module: Redis::Dump::VERSION

Defined in:
lib/redis/dump.rb

Class Method Summary collapse

Class Method Details

.load_configObject



252
253
254
255
# File 'lib/redis/dump.rb', line 252

def self.load_config
  require 'yaml'
  @info ||= YAML.load_file(path)
end

.ownerObject



243
244
245
# File 'lib/redis/dump.rb', line 243

def self.owner
  @info[:OWNER]
end

.pathObject



249
250
251
# File 'lib/redis/dump.rb', line 249

def self.path
  File.join(RD_HOME, 'VERSION.yml')
end

.stampObject



240
241
242
# File 'lib/redis/dump.rb', line 240

def self.stamp
  @info[:STAMP].to_i
end

.to_sObject



246
247
248
# File 'lib/redis/dump.rb', line 246

def self.to_s
  [@info[:MAJOR], @info[:MINOR], @info[:PATCH]].join('.')
end