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 CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-updater'
15
- s.version = '0.10.8'
15
+ s.version = '0.10.9'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -46,10 +46,8 @@ module Six
46
46
 
47
47
  puts
48
48
  log.info "Ready!"
49
-
50
- if File.exist?(PID_FILE)
51
- FileUtils.rm_f PID_FILE
52
- end
49
+
50
+ FileUtils.rm_f PID_FILE if File.exist?(PID_FILE)
53
51
 
54
52
  if @config[:wait]
55
53
  puts
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.8'
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
- Process.exit
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
- Process.exit
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
- Process.exit
378
+ exit
374
379
  end
375
380
  else
376
381
  log.error "No valid installation folder found, please abort!"
377
382
  wait
378
- Process.exit
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.8
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-29 00:00:00 +01:00
12
+ date: 2009-10-31 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency