Add golang cookbook

Needs updating of ark and git cookbooks
This commit is contained in:
2020-08-23 11:01:05 +02:00
parent 217ab471ce
commit 0005f9ab7d
55 changed files with 670 additions and 716 deletions

View File

@@ -1,19 +1,13 @@
class Chef
class Provider
class GitClient < Chef::Provider::LWRPBase
use_inline_resources
def whyrun_supported?
true
end
include Chef::DSL::IncludeRecipe
include GitCookbook::Helpers
provides :git_service, os: 'linux'
action :create do
return "#{node['platform']} is not supported by the #{cookbook_name}::#{recipe_name} recipe" if node['platform'] == 'windows'
return "#{node['platform']} is not supported by the #{cookbook_name}::#{recipe_name} recipe" if platform?('windows')
include_recipe 'git'