Sha256: ffdd754a8563d24f9b537a624a11b3223cae4aec8b9e6e64b5c47e880bcfcce9
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 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(hash) @hash = hash end def save(file_name) File.write(file_name, JSON.pretty_generate(@hash)) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ad-agent_architecture-0.0.24 | lib/ad/agent_architecture/dsl/actions/save_json.rb |
ad-agent_architecture-0.0.23 | lib/ad/agent_architecture/dsl/actions/save_json.rb |