gluez 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gluez/impl/linux.rb +7 -0
  2. metadata +2 -2
@@ -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.4
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-07 00:00:00 +02:00
13
+ date: 2011-05-16 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies: []
16
16