Module: Mimas::Plugins::Redis

Extended by:
Redis
Included in:
Redis
Defined in:
lib/mimas/plugins/redis.rb,
lib/mimas/plugins/redis/version.rb,
lib/mimas/plugins/redis/commands/setup.rb,
lib/mimas/plugins/redis/commands/console.rb,
lib/mimas/plugins/redis/commands/install.rb,
lib/mimas/plugins/redis/commands/configure.rb

Defined Under Namespace

Modules: Commands

Constant Summary collapse

TEMPLATES_DIR =
Pathname.new(__dir__).join("templates")
VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#register_commands(cli) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/mimas/plugins/redis.rb', line 6

def register_commands(cli)
  cli.register "redis" do |redis|
    redis.register "install",     Commands::Install
    redis.register "configure",   Commands::Configure
    redis.register "setup",       Commands::Setup
    redis.register "console",     Commands::Console
  end
end

#templates_dirObject



16
17
18
# File 'lib/mimas/plugins/redis.rb', line 16

def templates_dir
  TEMPLATES_DIR
end