livecd 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +1 -0
- data/README.md +1 -0
- data/bin/livecd +1 -0
- data/lib/livecd.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c62cf761e37cb8f7f3c8a2fd254129d33968530
|
4
|
+
data.tar.gz: 36e22fcd7e174cea2d6869254ef565e2e4589838
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85f5f3b0981fff6b3a914cfe8529fb7f812ab9c40fe697292e120423e316f18b1517709ff93042d9adc72ae5ce4b7933fe38fb54b13b804bf2be37bd46b065b0
|
7
|
+
data.tar.gz: fcfef52712babd1a8884241bbb425cc776e00f9238a568be67285b810683508f752c794ccb79ee7195c12ea4c5062cedba3661c40bd3517657520b1cbfa67140
|
data/CHANGELOG
CHANGED
data/README.md
CHANGED
data/bin/livecd
CHANGED
data/lib/livecd.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
module Livecd
|
3
|
-
VERSION = '0.
|
3
|
+
VERSION = '0.9'
|
4
4
|
VM_PREFIX = 'livecd-'
|
5
5
|
|
6
6
|
def list_vms
|
@@ -62,20 +62,21 @@ module Livecd
|
|
62
62
|
def run_iso( iso, opts )
|
63
63
|
name = find_name_for iso
|
64
64
|
puts "starting vm #{name} (#{iso})"
|
65
|
-
start_vm id(name), iso, opts
|
65
|
+
start_vm id(name), iso, opts
|
66
66
|
end
|
67
67
|
|
68
68
|
private
|
69
69
|
|
70
|
-
def start_vm( name_id, iso,
|
70
|
+
def start_vm( name_id, iso, opts )
|
71
|
+
ram = (opts[:memory].nil?) ? '' : "--memory #{opts[:memory]}"
|
71
72
|
# create the new vm
|
72
73
|
`vboxmanage createvm --name #{name_id} --register`
|
73
|
-
`vboxmanage modifyvm #{name_id} --ostype "Other"`
|
74
|
+
`vboxmanage modifyvm #{name_id} --ostype "Other" #{ram}`
|
74
75
|
`vboxmanage storagectl #{name_id} --name "IDE Controller" --add ide --bootable on`
|
75
76
|
`vboxmanage storageattach #{name_id} --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium "#{iso}"`
|
76
77
|
`vboxmanage modifyvm #{name_id} --nic1 nat`
|
77
78
|
`vboxmanage modifyvm #{name_id} --nic2 hostonly --hostonlyadapter2 vboxnet0`
|
78
|
-
hl = (headless) ? '--type headless' : ''
|
79
|
+
hl = (opts[:headless]) ? '--type headless' : ''
|
79
80
|
`vboxmanage startvm #{name_id} #{hl}`
|
80
81
|
end
|
81
82
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: livecd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: run livecds easily
|
14
14
|
email: dominik.richter@googlemail.com
|