Sha256: f3040cb421fdb88c198347443637fd63e454d29b09441f1e0faa6430f91c2cf1

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

require_relative 'deploy_rubygem/version'

# DeployRubygem module helper for rubygem
module DeployRubygem
  def rubygem_test
    DeployRubygem.deployer
  end

  def self.exemple_cookbook
    {
      git: 'git@git.exemple.com:/Exemple/exemple_cookbook.git',
      path: File.join(ENV['HOME'], 'jimbo_management_site'),
      kitchens: %w[base],
      compliance_profiles: {
        input: 'compliance/inputs/user.yml',
        profile: 'jimbodragon-management-site'
      },
      execute_profiles: %w[jimbodragon-accept],
      groups: %w[base]
    }
  end

  def self.deployer
    chefrepo_path = File.join(%w[test exemple chefrepo])
    project_options = {
      project_name: 'rubygem_test',
      git: 'git@git.exemple.com:/Exemple/rubygem',
      chefrepo_git: 'git@git.exemple.com:/Exemple/chefrepo',
      chefrepo_path: chefrepo_path,
      binaries: %w[exemple_deploy],
      dependencies: %w[deploy_rubygem],
      path: File.join(chefrepo_path, %w[projects rubygem_test]),
      cookbooks: {
        exemple_cookbook: exemple_cookbook
      }
    }
    @deployer ||= DeployRubygem::Project.new(project_options)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deploy_rubygem-0.60.29 lib/deploy_rubygem.rb
deploy_rubygem-0.60.28 lib/deploy_rubygem.rb