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,4 +1,4 @@
property :key, String, name_attribute: true
property :key, String, name_property: true
property :value, String
property :scope, equal_to: %w(local global system), default: 'global', desired_state: false
property :path, String, desired_state: false
@@ -6,10 +6,6 @@ property :user, String, desired_state: false
property :group, String, desired_state: false
property :options, String, desired_state: false
attr_accessor :exists
require 'mixlib/shellout'
def initialize(*args)
super
@@ -38,7 +34,7 @@ action :set do
end
end
action_class.class_eval do
action_class do
def config_cmd
"git config --#{new_resource.scope}"
end