Class: Mysqlman::Processor
- Inherits:
-
Object
- Object
- Mysqlman::Processor
- Defined in:
- lib/mysqlman/processor.rb
Instance Method Summary collapse
- #apply(debug = false) ⇒ Object
-
#initialize ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize ⇒ Processor
Returns a new instance of Processor.
3 4 5 6 |
# File 'lib/mysqlman/processor.rb', line 3 def initialize @current_users = current_users @managed_users = managed_users end |
Instance Method Details
#apply(debug = false) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/mysqlman/processor.rb', line 8 def apply(debug = false) delete_unknown_user(debug) create_shortage_user(debug) revoke_extra_privileges(debug) grant_shortage_privileges(debug) end |