Class: MagLove::Commands::Base
- Includes:
- Helper::LogHelper
- Defined in:
- lib/maglove/commands/base.rb
Instance Method Summary collapse
-
#initialize(args, opts, config) ⇒ Base
constructor
A new instance of Base.
Methods included from Helper::LogHelper
#debug, #error, #error!, #info, #logger
Constructor Details
#initialize(args, opts, config) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 14 |
# File 'lib/maglove/commands/base.rb', line 8 def initialize(args, opts, config) namespace = self.class.name.split("::").last.underscore command = config[:current_command].name Logging.mdc["full_command"] = "#{namespace}:#{command}" super theme.load(.theme) if .theme? and .theme != theme.identifier end |