# frozen_string_literal: true # DeployRubygem - deploy a gem using rake # Containing a class module DeployRubygem # Using Inspec to deploy and manage Inspec class DeployRubygemOptions def project_name 'deploy_rubygem' end def git 'git@github.com:JimboDragonGit/deploy_rubygem.git' end def chefrepo_git 'git@github.com:JimboDragonGit/jimbodragon.git' end def chefrepo_path '/usr/local/chef/repo/jimbodragon' end def binaries %w[ deploy_rubygem prepare_workstation test_deploy_rubygem deploy_jimbodragon ] end def dependencies %w[ deploy_rubygem jimbo_management_site ] end def path File.join(ENV['HOME'], 'deploy_rubygem') end def jimbodragon_profiles %w[ jimbodragon-accept jimbodragon-applications jimbodragon-deploy-context jimbodragon-environment jimbodragon-git ] end def workstation_profiles %w[ jimbodragon-linux-baseline jimbodragon-manual-push jimbodragon-push jimbodragon-services jimbodragon-users jimbodragon-workstation ] end def compliance_profiles jimbodragon_profiles + workstation_profiles end def jimbo_management_site_cookbook { git: 'git@github.com:JimboDragonGit/jimbo_management_site.git', path: File.join(ENV['HOME'], 'jimbo_management_site'), kitchens: %w[base], compliance_profiles: compliance_profiles, execute_profiles: %w[jimbodragon-accept], groups: %w[base] } end def jimbo_management_site_profile { input: 'compliance/inputs/user.yml', profile: 'jimbodragon-management-site' } end def cookbooks { jimbo_management_site: jimbo_management_site_cookbook } end def compile { project_name: project_name, git: git, chefrepo_git: chefrepo_git, chefrepo_path: chefrepo_path, binaries: binaries, dependencies: dependencies, path: path, cookbooks: cookbooks } end end end