Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnclosingDirectoryDoesNotExist Exception #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 22 additions & 6 deletions recipes/install_linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,40 @@
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

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
#
exec /opt/local/gauge/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
#
export GAUGE_ROOT=/opt/local/gauge
exec $GAUGE_ROOT/bin/gauge "$@"
EOF
end
end


file '/usr/local/bin/gauge_screenshot' do
mode '0755'
owner 'root'
Expand Down