Class: Islo::Redis::Client

Inherits:
Command
  • Object
show all
Defined in:
lib/islo/commands/redis.rb

Overview

Redis client

Instance Attribute Summary

Attributes inherited from Command

#command, #title

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#exec, #initialize, #title?

Constructor Details

This class inherits a constructor from Islo::Command

Class Method Details

.nameObject



8
9
10
# File 'lib/islo/commands/redis.rb', line 8

def self.name
  :'redis-cli'
end

Instance Method Details

#argsObject



12
13
14
# File 'lib/islo/commands/redis.rb', line 12

def args
  %w(-s redis.sock)
end

#wdObject

Change working directory (makes for a nicer prompt)



17
18
19
# File 'lib/islo/commands/redis.rb', line 17

def wd
  super + 'tmp/sockets'
end