Class: DokkuClient::Plugins::Memcached

Inherits:
Base
  • Object
show all
Defined in:
lib/dokku_client/plugins/memcached.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

Constructor Details

This class inherits a constructor from DokkuClient::Base

Instance Method Details

#commands(opts) ⇒ Object



28
29
30
# File 'lib/dokku_client/plugins/memcached.rb', line 28

def commands opts
  common_description('memcached', opts)
end

#create_memcachedObject



8
9
10
# File 'lib/dokku_client/plugins/memcached.rb', line 8

def create_memcached
  dokku "memcached:create #{@options["project-name"]}"
end

#delete_memcachedObject



12
13
14
# File 'lib/dokku_client/plugins/memcached.rb', line 12

def delete_memcached
  dokku "memcached:delete #{@options["project-name"]}"
end

#info_memcachedObject



16
17
18
# File 'lib/dokku_client/plugins/memcached.rb', line 16

def info_memcached
  dokku "memcached:info #{@options["project-name"]}"
end


24
25
26
# File 'lib/dokku_client/plugins/memcached.rb', line 24

def link_memcached container
  dokku "memcached:link #{@options["project-name"]} #{container}"
end

#logs_memcachedObject



20
21
22
# File 'lib/dokku_client/plugins/memcached.rb', line 20

def logs_memcached
  dokku "memcached:logs #{@options["project-name"]}"
end

#runObject



5
6
# File 'lib/dokku_client/plugins/memcached.rb', line 5

def run
end