Sha256: b26bdcb397f2a460ca4c95b745d769a845e3fc3b8b2693419799d93b655fa456
Contents?: true
Size: 466 Bytes
Versions: 14
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true require 'json' module Ad module AgentArchitecture module Dsl module Actions # Save workflow graph to JSON file class SaveJson def initialize(workflow_hash) @workflow_hash = workflow_hash end def save(file_name) # Pretty JSON File.write(file_name, JSON.pretty_generate(@workflow_hash)) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems