Sha256: 902326e3f2d3f39e06a2dd2b41b9d2ff6e036629d825e5079e274c5f387bdaf6

Contents?: true

Size: 426 Bytes

Versions: 16

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

require 'yaml'

module Ad
  module AgentArchitecture
    module Dsl
      module Actions
        # Save workflow graph to YAML file
        class SaveYaml
          def initialize(workflow_hash)
            @workflow_hash = workflow_hash
          end

          def save(file_name)
            File.write(file_name, @workflow_hash.to_yaml)
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ad-agent_architecture-0.0.24 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.23 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.22 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.21 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.20 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.19 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.18 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.17 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.16 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.15 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.14 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.13 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.12 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.11 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.10 lib/ad/agent_architecture/dsl/actions/save_yaml.rb
ad-agent_architecture-0.0.9 lib/ad/agent_architecture/dsl/actions/save_yaml.rb