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.26.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.25.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.24.2 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.24.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.24.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.23.5 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.23.4 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.23.3 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.23.2 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.23.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.23.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.22.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.21.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.20.2 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.20.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.20.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.19.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.18.1 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.18.0 lib/ood_core/batch_connect/templates/basic.rb
ood_core-0.17.6 lib/ood_core/batch_connect/templates/basic.rb