Class: DokkuClient::Plugins::Redis
- Inherits:
-
Base
- Object
- Base
- DokkuClient::Plugins::Redis
show all
- Defined in:
- lib/dokku_client/plugins/redis.rb
Constant Summary
Constants inherited
from Base
Base::GIT_DIR, Base::KEYS_AND_QUESTIONS
Instance Attribute Summary
Attributes inherited from Base
#options
Instance Method Summary
collapse
Methods inherited from Base
#common_description, #dokku, #git_directory_present?, #initialize, #plugin_enabled, #reconfig
Instance Method Details
#commands(opts) ⇒ Object
28
29
30
|
# File 'lib/dokku_client/plugins/redis.rb', line 28
def commands opts
common_description('redis', opts)
end
|
#create_redis ⇒ Object
8
9
10
|
# File 'lib/dokku_client/plugins/redis.rb', line 8
def create_redis
dokku "redis:create #{@options["project-name"]}"
end
|
#delete_redis ⇒ Object
12
13
14
|
# File 'lib/dokku_client/plugins/redis.rb', line 12
def delete_redis
dokku "redis:delete #{@options["project-name"]}"
end
|
#info_redis ⇒ Object
16
17
18
|
# File 'lib/dokku_client/plugins/redis.rb', line 16
def info_redis
dokku "redis:info #{@options["project-name"]}"
end
|
#link_redis(container) ⇒ Object
20
21
22
|
# File 'lib/dokku_client/plugins/redis.rb', line 20
def link_redis container
dokku "redis:link #{@options["project-name"]} #{container}"
end
|
#logs_redis ⇒ Object
24
25
26
|
# File 'lib/dokku_client/plugins/redis.rb', line 24
def logs_redis
dokku "redis:logs #{@options["project-name"]}"
end
|
#run ⇒ Object
5
6
|
# File 'lib/dokku_client/plugins/redis.rb', line 5
def run
end
|