Class: Rundoc::Context::Execution
- Inherits:
-
Object
- Object
- Rundoc::Context::Execution
- Defined in:
- lib/rundoc/context/execution.rb
Overview
Holds configuration for the currently executing script
Instance Attribute Summary collapse
-
#output_dir ⇒ Object
readonly
The path to the source file.
-
#screenshots_dir ⇒ Object
readonly
The path to the source file.
-
#source_dir ⇒ Object
readonly
The path to the source file.
-
#source_path ⇒ Object
readonly
The path to the source file.
-
#with_contents_dir ⇒ Object
readonly
The path to the source file.
Instance Method Summary collapse
-
#initialize(source_path:, output_dir:, screenshots_dirname:, with_contents_dir:) ⇒ Execution
constructor
A new instance of Execution.
Constructor Details
#initialize(source_path:, output_dir:, screenshots_dirname:, with_contents_dir:) ⇒ Execution
Returns a new instance of Execution.
16 17 18 19 20 21 22 |
# File 'lib/rundoc/context/execution.rb', line 16 def initialize(source_path:, output_dir:, screenshots_dirname:, with_contents_dir:) @source_path = Pathname(source_path). @source_dir = @source_path.parent @output_dir = Pathname(output_dir). @screenshots_dir = @output_dir.join(screenshots_dirname). @with_contents_dir = with_contents_dir end |
Instance Attribute Details
#output_dir ⇒ Object (readonly)
The path to the source file
6 7 8 |
# File 'lib/rundoc/context/execution.rb', line 6 def output_dir @output_dir end |
#screenshots_dir ⇒ Object (readonly)
The path to the source file
6 7 8 |
# File 'lib/rundoc/context/execution.rb', line 6 def screenshots_dir @screenshots_dir end |
#source_dir ⇒ Object (readonly)
The path to the source file
6 7 8 |
# File 'lib/rundoc/context/execution.rb', line 6 def source_dir @source_dir end |
#source_path ⇒ Object (readonly)
The path to the source file
6 7 8 |
# File 'lib/rundoc/context/execution.rb', line 6 def source_path @source_path end |
#with_contents_dir ⇒ Object (readonly)
The path to the source file
6 7 8 |
# File 'lib/rundoc/context/execution.rb', line 6 def with_contents_dir @with_contents_dir end |