- def describe_account(account)
- if self.user_exists(account)
- return "Username: #{account}"
- else
- return 'User not found'
- end
+ # Initialize this Agendav {Plugin} with values in *cfg*.
+ #
+ # @param cfg [Configuration] the configuration for this plugin.
+ #
+ def initialize(cfg)
+ @db_hash = {
+ :host => cfg.agendav_dbhost,
+ :port => cfg.agendav_dbport,
+ :options => cfg.agendav_dbopts,
+ :tty => cfg.agendav_dbtty,
+ :dbname => cfg.agendav_dbname,
+ :user => cfg.agendav_dbuser,
+ :password => cfg.agendav_dbpass }