Sha256: 6dfab77ead2663f0517e9b4c30ef243eec2c069c6d1eb74294096ad3be8e8f8e

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

# frozen_string_literal: true

require_relative "interpolator/variable_extractor"
require_relative "interpolator/file_extractor"

module AnsibleDocGenerator
  class DocGenerator
    class Interpolator
      attr_reader :input, :task, :role_path

      def initialize input, task, role_path
        @input = input
        @task = task
        @role_path = role_path
      end

      def call
        variables_interpolated = Interpolator::VariableExtractor.new(input, task, role_path).call
        Interpolator::FileExtractor.new(variables_interpolated, role_path).call
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ansible_doc_generator-0.1.0 lib/ansible_doc_generator/doc_generator/interpolator.rb