Class: Boxen::Preflight::EtcMyCnf

Inherits:
Boxen::Preflight show all
Defined in:
lib/boxen/preflight/etc_my_cnf.rb

Instance Attribute Summary

Attributes inherited from Check

#config

Instance Method Summary collapse

Methods inherited from Check

#abort, checks, #initialize, register, run, #warn

Constructor Details

This class inherits a constructor from Boxen::Check

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/boxen/preflight/etc_my_cnf.rb', line 9

def ok?
  !File.file? "/etc/my.cnf"
end

#runObject



4
5
6
7
# File 'lib/boxen/preflight/etc_my_cnf.rb', line 4

def run
  abort "You have an /etc/my.cnf file.",
    "This will confuse The Setup's MySQL a lot. Please remove it."
end