Sha256: c5bb265abb83e2ad9eebbbfddf4d8a2818e7c2137accaef5f43cd4267ed87bb3

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

require_relative 'deploy_rubygem/version'
require_relative 'deploy_rubygem/rubygem'

# 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(Dir.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.35 lib/deploy_rubygem.rb
deploy_rubygem-0.60.34 lib/deploy_rubygem.rb