Update golang cookbook
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: golang
|
||||
# Resource:: default
|
||||
#
|
||||
# Copyright:: 2020, Sous-chefs
|
||||
# Copyright:: 2020-2021, Sous-chefs
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy
|
||||
@@ -17,6 +17,8 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
unified_mode true
|
||||
|
||||
# Install golang by compiling from source
|
||||
property :from_source, [true, false], default: false
|
||||
|
||||
@@ -99,7 +101,7 @@ action :install do
|
||||
source 'golang.sh.erb'
|
||||
mode new_resource.directory_mode
|
||||
variables gobin: new_resource.gobin,
|
||||
gopath: new_resource.gobin,
|
||||
gopath: new_resource.gopath,
|
||||
install_dir: new_resource.install_dir
|
||||
end
|
||||
|
||||
|
||||
@@ -2,6 +2,22 @@
|
||||
# Cookbook:: golang
|
||||
# Resource:: default
|
||||
#
|
||||
# Copyright:: 2020-2021, Sous-chefs
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy
|
||||
# of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
|
||||
unified_mode true
|
||||
|
||||
default_action :install
|
||||
|
||||
|
||||
Reference in New Issue
Block a user