six-updater 0.10.8 → 0.10.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/updater-app.rb +2 -4
- data/lib/six/updater.rb +10 -5
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/six/updater-app.rb
CHANGED
data/lib/six/updater.rb
CHANGED
@@ -44,7 +44,7 @@ end
|
|
44
44
|
module Six
|
45
45
|
# TODO: Evaluate if this module should be a class instead?
|
46
46
|
module Updater
|
47
|
-
VERSION = '0.10.
|
47
|
+
VERSION = '0.10.9'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -154,6 +154,11 @@ module Six
|
|
154
154
|
wait
|
155
155
|
end
|
156
156
|
|
157
|
+
def exit
|
158
|
+
FileUtils.rm_f PID_FILE if File.exist?(PID_FILE)
|
159
|
+
Process.exit
|
160
|
+
end
|
161
|
+
|
157
162
|
def zipcheck
|
158
163
|
begin
|
159
164
|
%x[7z]
|
@@ -165,7 +170,7 @@ module Six
|
|
165
170
|
unless FileTest.exist?(file)
|
166
171
|
log.error "ERROR: #{file} not found, please download from http://7-zip.org/download.html '7-Zip Command Line Version'"
|
167
172
|
wait
|
168
|
-
|
173
|
+
exit
|
169
174
|
end
|
170
175
|
end
|
171
176
|
end
|
@@ -325,7 +330,7 @@ module Six
|
|
325
330
|
unless FileTest.exist?(config)
|
326
331
|
log.error "ERROR: #{config} config missing!"
|
327
332
|
wait
|
328
|
-
|
333
|
+
exit
|
329
334
|
end
|
330
335
|
|
331
336
|
File.open(config) { |file| @config.merge!(YAML::load(file)) }
|
@@ -370,12 +375,12 @@ module Six
|
|
370
375
|
else
|
371
376
|
log.error "No valid installation folder found, please abort!"
|
372
377
|
wait
|
373
|
-
|
378
|
+
exit
|
374
379
|
end
|
375
380
|
else
|
376
381
|
log.error "No valid installation folder found, please abort!"
|
377
382
|
wait
|
378
|
-
|
383
|
+
exit
|
379
384
|
end
|
380
385
|
|
381
386
|
# Nasty workaround for cygwin on Vista vs XP, vs acl's
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six-updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sickboy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-31 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|