Sha256: 1ca40da15c772a542185a00b64e8204908f20a34498c4e0048f7b301bc36406a

Contents?: true

Size: 813 Bytes

Versions: 2

Compression:

Stored size: 813 Bytes

Contents

module Depec
  class Initializer
    attr_accessor :config

    #
    # @param [Hash] answers
    # @return 
    #
    def processAnswers(answers)
      Depec::Configuration.call({
        targets: {
          ruby: {
            use: answers[:ruby],
            version: answers[:ruby_version],
            bundler_version: answers[:bundler_version],
            gem_version: answers[:gem_version]
          },
          node: {
            use: answers[:node],
            version: answers[:node_version],
            npm_version: answers[:npm_version]
          },
          circle_ci: {
            use: answers[:circle_ci],
            images: answers[:circle_ci_images]
          },
          github_actions: {
            use: answers[:github_actions]
          }
        }
      }).to_h
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
depec-1.0.1 lib/depec/initializer.rb
depec-1.0.0 lib/depec/initializer.rb