Class: MagLove::Commands::Base
- Includes:
- Helper::LogHelper, Workspace
- 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 Workspace
#gem_dir, #theme_base_dir, #theme_base_file, #theme_config, #theme_dir, #theme_file, #workspace_dir, #workspace_file
Methods included from Helper::LogHelper
#debug, #error, #error!, #info, #logger
Constructor Details
#initialize(args, opts, config) ⇒ Base
9 10 11 12 13 14 |
# File 'lib/maglove/commands/base.rb', line 9 def initialize(args, opts, config) namespace = self.class.name.split("::").last.underscore command = config[:current_command].name Logging.mdc["full_command"] = "#{namespace}:#{command}" super end |