Sha256: ca023bc7472539523b5963777e8dd919c9f2101d9bcc79f8c342496ba937220b

Contents?: true

Size: 629 Bytes

Versions: 53

Compression:

Stored size: 629 Bytes

Contents

require "ood_core/refinements/hash_extensions"

module OodCore
  module BatchConnect
    class Factory
      using Refinements::HashExtensions

      # Build the basic template from a configuration
      # @param config [#to_h] the configuration for the batch connect template
      def self.build_basic(config)
        context = config.to_h.symbolize_keys.reject { |k, _| k == :template }
        Templates::Basic.new(context)
      end
    end

    module Templates
      # A batch connect template that expects to start up a basic web server
      # within a batch job
      class Basic < Template
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
ood_core-0.17.5 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.17.4 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.17.2 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.17.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.17.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.16.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.16.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.15.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.15.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.14.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.13.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.12.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.11.4 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.11.3 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.11.2 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.11.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.10.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.9.3 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.9.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.9.0 lib/ood_core/batch_connect/templates/basic.rb