Parent

RedisRunner

Public Class Methods

configuration() click to toggle source
# File lib/tasks/redis.tasks.rb, line 11
def self.configuration
  File.expand_path("../../../test/config/redis.conf", __FILE__)
end
pid() click to toggle source
# File lib/tasks/redis.tasks.rb, line 19
def self.pid
  File.open(pid_file).read.to_i
end
pid_file() click to toggle source
# File lib/tasks/redis.tasks.rb, line 15
def self.pid_file
  File.expand_path(Dir.pwd + "/tmp/pids/redis.pid")
end
redisdir() click to toggle source
# File lib/tasks/redis.tasks.rb, line 7
def self.redisdir
  File.expand_path("../../../vendor/redis", __FILE__)
end
start() click to toggle source
# File lib/tasks/redis.tasks.rb, line 23
def self.start
  system %(redis-server #{configuration})
end
stop() click to toggle source
# File lib/tasks/redis.tasks.rb, line 27
def self.stop
  begin
    Process.kill('SIGTERM', pid)
  rescue
    # Suppress exceptions for Travis CI
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.