Module: Redis::Dump::VERSION
- Defined in:
- lib/redis/dump.rb
Class Method Summary collapse
Class Method Details
.load_config ⇒ Object
252 253 254 255 |
# File 'lib/redis/dump.rb', line 252 def self.load_config require 'yaml' @info ||= YAML.load_file(path) end |
.owner ⇒ Object
243 244 245 |
# File 'lib/redis/dump.rb', line 243 def self.owner @info[:OWNER] end |
.path ⇒ Object
249 250 251 |
# File 'lib/redis/dump.rb', line 249 def self.path File.join(RD_HOME, 'VERSION.yml') end |
.stamp ⇒ Object
240 241 242 |
# File 'lib/redis/dump.rb', line 240 def self.stamp @info[:STAMP].to_i end |
.to_s ⇒ Object
246 247 248 |
# File 'lib/redis/dump.rb', line 246 def self.to_s [@info[:MAJOR], @info[:MINOR], @info[:PATCH]].join('.') end |