system-builder 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
data/bin/box CHANGED
@@ -31,14 +31,12 @@ qemu_disks = []
31
31
  case @root
32
32
  when "iso"
33
33
  qemu_options << "-cdrom dist/iso"
34
+ qemu_options << "--boot order=d"
34
35
  else
35
36
  qemu_disks << "dist/disk"
36
37
  end
37
38
 
38
- if File.exists?("dist/storage")
39
- qemu_disks << "dist/storage"
40
- qemu_options << "--boot order=d"
41
- end
39
+ qemu_disks.push *Dir["dist/storage*"]
42
40
 
43
41
  qemu_disks.each_with_index do |disk, index|
44
42
  qemu_options << "-drive file=#{disk},if=ide,index=#{index+1},media=disk"
@@ -11,7 +11,7 @@ class SystemBuilder::Box
11
11
  end
12
12
 
13
13
  def release_name
14
- @release_name ||= "streambox-#{release_number}"
14
+ @release_name ||= "#{name}-#{release_number}"
15
15
  end
16
16
 
17
17
  def root_file
@@ -85,7 +85,7 @@ class SystemBuilder::Box
85
85
  def create_latest_file(latest_file)
86
86
  File.open(latest_file, "w") do |f|
87
87
  f.puts "name: #{release_name}"
88
- f.puts "url: http://download.tryphon.eu/streambox/streambox-#{release_number}.tar"
88
+ f.puts "url: http://download.tryphon.eu/#{name}/#{name}-#{release_number}.tar"
89
89
  f.puts "checksum: #{upgrade_checksum}"
90
90
  f.puts "status_updated_at: #{Time.now}"
91
91
  f.puts "description_url: http://www.tryphon.eu/release/#{release_name}"
@@ -2,7 +2,7 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module SystemBuilder
5
- VERSION = '0.0.17'
5
+ VERSION = '0.0.18'
6
6
 
7
7
  @@configurations = {}
8
8
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system-builder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 17
10
- version: 0.0.17
9
+ - 18
10
+ version: 0.0.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alban Peignier
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-14 00:00:00 +02:00
18
+ date: 2010-10-12 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency