Sha256: 2c6e57c1d0c29c7b422ae6e8a6ec6ae8a42dce076a21c3175d28a57e41f3392e

Contents?: true

Size: 942 Bytes

Versions: 6

Compression:

Stored size: 942 Bytes

Contents

module VagrantPlugins
  module Ventriloquist
    module Services
      class MySql < Service
        def provision(machine)
          super

          @machine = machine

          install_client
          install_headers
          configure_client
        end

        protected

        def install_client
          if @machine.guest.capability?(:mysql_install_client)
            @machine.guest.capability(:mysql_install_client)
          else
            @machine.env.ui.warn 'Unable to install the MySQL client'
          end
        end

        def install_headers
          if @machine.guest.capability?(:mysql_install_headers)
            @machine.guest.capability(:mysql_install_headers)
          else
            @machine.env.ui.warn 'Unable to install MySQL header files'
          end
        end

        def configure_client
          @machine.guest.capability(:mysql_configure_client)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ventriloquist-0.3.2 lib/ventriloquist/services/mysql.rb
ventriloquist-0.3.1 lib/ventriloquist/services/mysql.rb
ventriloquist-0.3.0 lib/ventriloquist/services/mysql.rb
ventriloquist-0.2.1 lib/ventriloquist/services/mysql.rb
ventriloquist-0.2.0 lib/ventriloquist/services/mysql.rb
ventriloquist-0.1.0 lib/ventriloquist/services/mysql.rb