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 +2 -4
- data/lib/system_builder/box.rb +2 -2
- data/lib/system_builder.rb +1 -1
- metadata +4 -4
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
|
-
|
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"
|
data/lib/system_builder/box.rb
CHANGED
@@ -11,7 +11,7 @@ class SystemBuilder::Box
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def release_name
|
14
|
-
@release_name ||= "
|
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
|
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}"
|
data/lib/system_builder.rb
CHANGED
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:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
18
|
+
date: 2010-10-12 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|