Class: Snoot::CLI::Pipeline

Inherits:
Data
  • Object
show all
Defined in:
lib/snoot/cli/pipeline.rb

Overview

Pipeline bundles the analyser orchestration and the stdout/stderr pair that together define a CLI invocation’s wiring – the trio flows through run_invoked, the outcome dispatch, and emit_report.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#orchestrationObject (readonly)

Returns the value of attribute orchestration

Returns:

  • (Object)

    the current value of orchestration



8
9
10
# File 'lib/snoot/cli/pipeline.rb', line 8

def orchestration
  @orchestration
end

#stderrObject (readonly)

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



8
9
10
# File 'lib/snoot/cli/pipeline.rb', line 8

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



8
9
10
# File 'lib/snoot/cli/pipeline.rb', line 8

def stdout
  @stdout
end

Class Method Details

.defaultObject



9
10
11
# File 'lib/snoot/cli/pipeline.rb', line 9

def self.default
  new(orchestration: AnalyserOrchestration::Default, stdout: $stdout, stderr: $stderr)
end