Class: SpecForge::CLI::ActionContext

Inherits:
Thor
  • Object
show all
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

Constructor Details

#initializeActionContext

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.expand_path("../../templates", __dir__))
  self.destination_root = SpecForge.root
  self.options = {}
end