Update golang cookbook
This commit is contained in:
@@ -25,7 +25,7 @@ property :url, String, required: true
|
||||
property :path, String
|
||||
property :full_path, String
|
||||
property :append_env_path, [true, false], default: false
|
||||
property :checksum, regex: /^[a-zA-Z0-9]{64}$/, default: nil
|
||||
property :checksum, String, regex: /^[a-zA-Z0-9]{64}$/
|
||||
property :has_binaries, Array, default: []
|
||||
property :creates, String
|
||||
property :release_file, String, default: ''
|
||||
@@ -46,6 +46,8 @@ property :autoconf_opts, Array, default: []
|
||||
property :extension, String
|
||||
property :backup, [FalseClass, Integer], default: 5
|
||||
|
||||
unified_mode true
|
||||
|
||||
#################
|
||||
# action :install
|
||||
#################
|
||||
@@ -105,6 +107,9 @@ action :install do
|
||||
to new_resource.path
|
||||
end
|
||||
|
||||
# This directory doesn't exist by default on MacOS
|
||||
directory '/etc/profile.d' if platform_family?('mac_os_x')
|
||||
|
||||
# Add to path for interactive bash sessions
|
||||
template "/etc/profile.d/#{new_resource.name}.sh" do
|
||||
cookbook 'ark'
|
||||
|
||||
Reference in New Issue
Block a user