Module: RubyYacht::Plugins::MySQL
- Defined in:
- lib/ruby_yacht/plugins/mysql.rb
Overview
This module provides the plugin for managing MySQL databases.
Class Method Summary collapse
-
.load ⇒ Object
This method loads the configuration for the MySQL plugin.
Class Method Details
.load ⇒ Object
This method loads the configuration for the MySQL plugin.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ruby_yacht/plugins/mysql.rb', line 5 def self.load RubyYacht.configure do server_type :mysql do container_type :database baseline_image 'mysql' environment_variable :database, 'DEBIAN_FRONTEND' do 'noninteractive' end end end RubyYacht.configure do add_hooks(server_type: :mysql, folder: File.join(File.dirname(__FILE__), 'mysql', 'scripts')) do during(:install_libraries) { command 'apt-get install -y mysql-server' } during(:create_databases) { run_script 'setup.bash' } end end end |