Class: Pipely::Actions::GraphFilePipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/pipely/actions/graph_file_pipeline.rb

Overview

Graph a pipeline definition from a file.

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ GraphFilePipeline

Returns a new instance of GraphFilePipeline.



8
9
10
# File 'lib/pipely/actions/graph_file_pipeline.rb', line 8

def initialize(options)
  @options = options
end

Instance Method Details

#executeObject



12
13
14
15
# File 'lib/pipely/actions/graph_file_pipeline.rb', line 12

def execute
  puts "Generating #{output_file}"
  Pipely.draw(definition_json, output_file)
end