gaffer 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/gaffer/deb.rb +9 -5
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/gaffer/deb.rb
CHANGED
@@ -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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Orion Henry
|