Class: SpecForge::CLI::ActionContext
- Inherits:
-
Thor
- Object
- Thor
- SpecForge::CLI::ActionContext
- Includes:
- Thor::Actions
- Defined in:
- lib/spec_forge/cli/actions.rb
Overview
Provides a context for Thor actions that configures paths and options
Instance Method Summary collapse
-
#initialize ⇒ ActionContext
constructor
Creates a new action context with SpecForge template paths configured.
Constructor Details
#initialize ⇒ ActionContext
Creates a new action context with SpecForge template paths configured
43 44 45 46 47 |
# File 'lib/spec_forge/cli/actions.rb', line 43 def initialize(...) self.class.source_root(File.("../../templates", __dir__)) self.destination_root = SpecForge.root self. = {} end |