Class: DokkuClient::Plugins::Mysql
- Inherits:
-
Base
- Object
- Base
- DokkuClient::Plugins::Mysql
show all
- Defined in:
- lib/dokku_client/plugins/mysql.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/mysql.rb', line 28
def commands opts
common_description('mysql', opts)
end
|
#create_mysql ⇒ Object
8
9
10
|
# File 'lib/dokku_client/plugins/mysql.rb', line 8
def create_mysql
dokku "mysql:create #{@options["project-name"]}"
end
|
#delete_mysql ⇒ Object
12
13
14
|
# File 'lib/dokku_client/plugins/mysql.rb', line 12
def delete_mysql
dokku "mysql:delete #{@options["project-name"]}"
end
|
#info_mysql ⇒ Object
16
17
18
|
# File 'lib/dokku_client/plugins/mysql.rb', line 16
def info_mysql
dokku "mysql:info #{@options["project-name"]}"
end
|
#link_mysql(db) ⇒ Object
20
21
22
|
# File 'lib/dokku_client/plugins/mysql.rb', line 20
def link_mysql db
dokku "mysql:link #{@options["project-name"]} #{db}"
end
|
#logs_mysql ⇒ Object
24
25
26
|
# File 'lib/dokku_client/plugins/mysql.rb', line 24
def logs_mysql
dokku "mysql:logs #{@options["project-name"]}"
end
|
#run ⇒ Object
5
6
|
# File 'lib/dokku_client/plugins/mysql.rb', line 5
def run
end
|