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
avm-0.94.1 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.98.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.94.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.94.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.93.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.92.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.92.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.91.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.90.1 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.87.1 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.90.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.87.0 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.89.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.86.12 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.88.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.86.11 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.87.0 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.86.8 sub/avm/lib/avm/rspec/setup/source_generator.rb
avm-0.86.2 lib/avm/rspec/setup/source_generator.rb
eac_tools-0.86.7 sub/avm/lib/avm/rspec/setup/source_generator.rb