Class: DokkuClient::Plugins::Mysql

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from DokkuClient::Base

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_mysqlObject



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

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

#delete_mysqlObject



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

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

#info_mysqlObject



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

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


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_mysqlObject



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

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

#runObject



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

def run
end