Class: Anvil::Mysql::Grant

Inherits:
SubCommandBase show all
Includes:
Password
Defined in:
lib/anvil/mysql/grant.rb

Instance Method Summary collapse

Methods inherited from SubCommandBase

banner, subcommand_prefix

Instance Method Details

#all(db_name, db_username, user, host) ⇒ Object



16
17
18
19
# File 'lib/anvil/mysql/grant.rb', line 16

def all db_name, db_username, user, host
  password = get_password_from options[:mysql_password]
  Anvil::Mysql::PrivilegesGranter.new(db_name, db_username, user, host, options[:mysql_user], password, options[:mysql_host], options[:mysql_port]).call
end