Skip to content

Instantly share code, notes, and snippets.

@andrewfraley
Created October 21, 2013 21:21
Show Gist options
  • Save andrewfraley/7091241 to your computer and use it in GitHub Desktop.
Save andrewfraley/7091241 to your computer and use it in GitHub Desktop.
bash 'extract_module' do
cwd ::File.dirname(src_filepath)
code <<-EOH
mkdir -p #{extract_path}
tar xzf #{src_filename} -C #{extract_path}
mv #{extract_path}/*/* #{extract_path}/
chown -R #{jboss_user}:#{jboss_user} #{extract_path}
find #{extract_path}/ -exec chmod g+w {} \;
EOH
not_if { ::File.exists?(extract_path) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment