Sha256: 28552ac750f62ec2f11c9581161de9bd3904e9876449e2ef4073185254494559

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require 'rundock/target/base'

module Rundock
  module Target
    class Group < Base
      def create_nodes(target_info = {}, options = {})
        targets = @contents[:targets]

        nodes = []

        targets.each do |n|
          backend_builder = Rundock::Builder::BackendBuilder.new(options, n, target_info)
          backend = backend_builder.build
          @parsed_options[n.to_sym] = backend_builder.parsed_options
          nodes << Node.new(n, backend)
        end

        [nodes, @parsed_options]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rundock-1.2.1 lib/rundock/plugin/target/group.rb
rundock-1.2.0 lib/rundock/plugin/target/group.rb