gluez 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gluez/impl/linux.rb +7 -0
- metadata +2 -2
data/lib/gluez/impl/linux.rb
CHANGED
@@ -152,6 +152,13 @@ CMD
|
|
152
152
|
:check => opts[:not_if],
|
153
153
|
:code => "su -l #{opts[:user, 'root']} -c '#{opts[:code]}'"
|
154
154
|
}
|
155
|
+
|
156
|
+
when :bash_once
|
157
|
+
home_dir = (opts[:user, 'root'] == 'root') ? "/root" : "/home/#{opts[:user, 'root']}"
|
158
|
+
steps << {
|
159
|
+
:check => "-f #{home_dir}/.gluez/#{name}",
|
160
|
+
:code => "su -l #{opts[:user, 'root']} -c '#{opts[:code]}\ntouch #{home_dir}/.gluez/#{name}'"
|
161
|
+
}
|
155
162
|
|
156
163
|
when :bundler
|
157
164
|
steps << {
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gluez
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jan Zimmek
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-16 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|