summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-04-22 12:20:05 +0300
committerSaku Ytti <saku@ytti.fi>2014-04-22 12:20:05 +0300
commit09dfc11b5dfdfe926b217c17549e417b79009d7d (patch)
tree725a12bd05b8a26bf8cc6c49d8b1aa652cc84ddb /Rakefile
parentda959461a6f90856d5d3d02e26d32d7d4c0a4c2c (diff)
potential fix to race condition
1) ssh fails 2) user clicks 'update' 3) node is reset and moved head of queue 4) telnet fails 5) node last time is set to current net result, head of queue will block until interval has passed, even though below head there are nodes which need to be processed.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 2e3c604..d0e8c23 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,10 +1,9 @@
begin
require 'rake/testtask'
require 'bundler'
- Bundler.setup
+ # Bundler.setup
rescue LoadError
warn 'bunler missing'
- exit 42
end
gemspec = eval(File.read(Dir['*.gemspec'].first))
@@ -33,7 +32,7 @@ end
desc 'Install gem'
task :install => :build do
- system "sudo -E sh -c \'umask 022; gem install gems/#{file}\'"
+ system "sudo -Es sh -c \'umask 022; gem install gems/#{file}\'"
end
desc 'Remove gems'