gaffer 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/gaffer/deb.rb +9 -5
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -24,14 +24,18 @@ module Gaffer
24
24
  else
25
25
  Rush.bash "find #{install_dir.full_path} | grep [.]git | grep -v #{install_dir.full_path}$ | xargs rm -rf"
26
26
  [ :preinst, :postinst, :prerm, :postrm ].each do |script|
27
- file = File.open("#{dir}/DEBIAN/#{script}","w")
28
- file.chmod(0755)
29
- file.write(template(script))
30
- file.close
27
+ File.open("#{dir}/DEBIAN/#{script}","w") do |file|
28
+ file.chmod(0755)
29
+ file.write(template(script))
30
+ end
31
31
  end
32
32
  if install_dir["sudoers"].exists?
33
33
  Rush["#{dir}/etc/sudoers.d/"].create
34
- Rush["#{dir}/etc/sudoers.d/#{project}"].write install_dir["sudoers"].read
34
+ File.open("#{dir}/etc/sudoers.d/#{project}","w") do |file|
35
+ file.chmod(0440)
36
+ file.write install_dir["sudoers"].read
37
+ end
38
+ puts "sudoers -> /etc/sudoers.d/#{project}"
35
39
  end
36
40
  if install_dir["init.conf"].exists?
37
41
  puts " * detected init.conf - installing..."
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaffer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Orion Henry