Sha256: 2579a5a5efc9cd55f94af4f038c8f1916207fccb186a9ef5cb2572c7498d2de6

Contents?: true

Size: 685 Bytes

Versions: 141

Compression:

Stored size: 685 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Rspec
    module Setup
      module SourceGenerator
        DEFAULT_TARGET_BASENAME = 'generated_app'

        # @return [Avm::Sources::Base]
        def avm_source(stereotype_name, options = {})
          options = options.dup
          target_basename ||= options.delete(:target_basename) || DEFAULT_TARGET_BASENAME
          target_path ||= options.delete(:target_path) || temp_dir.join(target_basename)
          ::Avm::Registry.source_generators.detect(stereotype_name, target_path, options).perform
          ::Avm::Registry.sources.detect(target_path)
        end
      end
    end
  end
end

Version data entries

141 entries across 141 versions & 2 rubygems

Version Path
eac_tools-0.70.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.76.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.69.1 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.75.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.69.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.74.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.68.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.73.1 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.67.1 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.73.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.67.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.72.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.66.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
eac_tools-0.65.1 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.71.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.65.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.70.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.64.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.69.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.63.0 sub/avm/lib/avm/rspec/setup/source_generator.rb