class Rundoc::Context::Execution
Holds configuration for the currently executing script
Attributes
output_dir[R]
The path to the source file
screenshots_dir[R]
The path to the source file
source_dir[R]
The path to the source file
source_path[R]
The path to the source file
Public Class Methods
new(source_path:, output_dir:, screenshots_dirname:)
click to toggle source
# File lib/rundoc/context/execution.rb, line 14 def initialize(source_path:, output_dir:, screenshots_dirname:) @source_path = Pathname(source_path).expand_path @source_dir = @source_path.parent @output_dir = Pathname(output_dir).expand_path @screenshots_dir = @output_dir.join(screenshots_dirname).expand_path end