From de4fac002a68f655657f2a4ce170db83b6ea74f7 Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Sun, 25 Jun 2017 20:34:37 -0700 Subject: [PATCH 1/7] EnclosingDirectoryDoesNotExist Exception template[/opt/local/gauge/share/gauge/gauge.properties] action create * Parent directory /opt/local/gauge/share/gauge does not exist. ================================================================================ Error executing action `create` on resource 'template[/opt/local/gauge/share/gauge/gauge.properties]' ================================================================================ Chef::Exceptions::EnclosingDirectoryDoesNotExist ------------------------------------------------ Parent directory /opt/local/gauge/share/gauge does not exist. Resource Declaration: --------------------- # In /tmp/kitchen/cache/cookbooks/gauge/recipes/install_linux.rb 49: template '/opt/local/gauge/share/gauge/gauge.properties' do 50: owner 'root' 51: group 'root' 52: mode '0644' 53: end 54: Compiled Resource: ------------------ # Declared in /tmp/kitchen/cache/cookbooks/gauge/recipes/install_linux.rb:49:in `from_file' template("/opt/local/gauge/share/gauge/gauge.properties") do action [:create] retries 0 retry_delay 2 default_guard_interpreter :default source "gauge.properties.erb" declared_type :template cookbook_name "gauge" recipe_name "install_linux" path "/opt/local/gauge/share/gauge/gauge.properties" mode "0644" owner "root" group "root" end Platform: --------- x86_64-linux --- recipes/install_linux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/install_linux.rb b/recipes/install_linux.rb index b8582a6..f0ac71e 100644 --- a/recipes/install_linux.rb +++ b/recipes/install_linux.rb @@ -14,7 +14,7 @@ end execute "install gauge v#{node['gauge']['version']}" do - command "rm -rf /opt/local/gauge && mkdir -p /opt/local/gauge && unzip #{zipfile} -d /opt/local/gauge && touch /opt/local/gauge/.version-#{node['gauge']['version']}" + command "rm -rf /opt/local/gauge && mkdir -p /opt/local/gauge/share/gauge && unzip #{zipfile} -d /opt/local/gauge && touch /opt/local/gauge/.version-#{node['gauge']['version']}" creates "/opt/local/gauge/.version-#{node['gauge']['version']}" end From f5e4af22415e8b82e20d1979cdfd6e3180ad62ae Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Sun, 25 Jun 2017 22:02:54 -0700 Subject: [PATCH 2/7] Update metadata.rb --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index c4d008f..9269b5b 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'MIT' description 'Installs/Configures gauge' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '1.8.0' +version '1.8.5' %w(redhat centos scientific fedora amazon oracle debian ubuntu suse opensuse windows).each do |os| supports os From 3d8677645dd09c482168f7e3f936c06a6dfb5e3e Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Mon, 26 Jun 2017 11:48:19 -0700 Subject: [PATCH 3/7] Update for gauge 0.8.5 and latest --- recipes/install_linux.rb | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/recipes/install_linux.rb b/recipes/install_linux.rb index f0ac71e..740cb56 100644 --- a/recipes/install_linux.rb +++ b/recipes/install_linux.rb @@ -18,20 +18,35 @@ creates "/opt/local/gauge/.version-#{node['gauge']['version']}" end -file '/usr/local/bin/gauge' do - mode '0755' - owner 'root' - group 'root' - content <<-EOF +if (node['gauge']['version'].slice(0).to_i + node['gauge']['version'].split('.',2)[1].to_f/10) >= 0.85 + file '/usr/local/bin/gauge' do + mode '0755' + owner 'root' + group 'root' + content <<-EOF #!/bin/bash # # This file was generated by chef, any changes will be lost # export GAUGE_ROOT=/opt/local/gauge exec $GAUGE_ROOT/bin/gauge "$@" +EOF + end +else + file '/usr/local/bin/gauge' do + mode '0755' + owner 'root' + group 'root' + content <<-EOF +#!/bin/bash +# +# This file was generated by chef, any changes will be lost +# +exec /opt/local/gauge/bin/gauge "$@" EOF end + file '/usr/local/bin/gauge_screenshot' do mode '0755' owner 'root' From 3c104dbf3c67525ebb7ef956492231f6d24bc1fd Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Mon, 26 Jun 2017 11:50:20 -0700 Subject: [PATCH 4/7] Fix syntax --- recipes/install_linux.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/install_linux.rb b/recipes/install_linux.rb index 740cb56..cfafeb0 100644 --- a/recipes/install_linux.rb +++ b/recipes/install_linux.rb @@ -44,6 +44,7 @@ # exec /opt/local/gauge/bin/gauge "$@" EOF + end end From bdcf4379209cca4da2e777649a31fc62612bab8c Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Mon, 26 Jun 2017 20:05:01 -0700 Subject: [PATCH 5/7] Fix gauge script --- recipes/install_linux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/install_linux.rb b/recipes/install_linux.rb index cfafeb0..6594b1d 100644 --- a/recipes/install_linux.rb +++ b/recipes/install_linux.rb @@ -28,7 +28,6 @@ # # This file was generated by chef, any changes will be lost # -export GAUGE_ROOT=/opt/local/gauge exec $GAUGE_ROOT/bin/gauge "$@" EOF end @@ -42,6 +41,7 @@ # # This file was generated by chef, any changes will be lost # +export GAUGE_ROOT=/opt/local/gauge exec /opt/local/gauge/bin/gauge "$@" EOF end From 2418804f45357d891c1d670db11305578e42db23 Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Mon, 26 Jun 2017 20:27:16 -0700 Subject: [PATCH 6/7] Fix gauge path --- recipes/install_linux.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/install_linux.rb b/recipes/install_linux.rb index 6594b1d..496cb24 100644 --- a/recipes/install_linux.rb +++ b/recipes/install_linux.rb @@ -28,7 +28,7 @@ # # This file was generated by chef, any changes will be lost # -exec $GAUGE_ROOT/bin/gauge "$@" +exec /opt/local/gauge/bin/gauge "$@" EOF end else @@ -42,7 +42,7 @@ # This file was generated by chef, any changes will be lost # export GAUGE_ROOT=/opt/local/gauge -exec /opt/local/gauge/bin/gauge "$@" +exec $GAUGE_ROOT/bin/gauge "$@" EOF end end From 7effd04338d236bf18c104a225b54f1acd0d57e6 Mon Sep 17 00:00:00 2001 From: Barrow Kwan Date: Tue, 28 Nov 2017 21:29:31 -0800 Subject: [PATCH 7/7] update CHANGELOG.md for new release --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d09e3c7..86ca4b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ Gauge CHANGELOG This file is used to list changes made in each version of the gauge cookbook. +v1.8.5 (2017-11-28) +----------------- +* Upgrade to gauge 0.8.5 +* fix guage path that caused EnclosingDirectoryDoesNotExist Exception + v1.8.0 (2016-12-24) ----------------- * Upgrade to gauge 0.7.0