Sha256: 2343a5cfaae361573f47a459b74c82af62d93309bc9b39436659705d6e42d4cb
Contents?: true
Size: 545 Bytes
Versions: 20
Compression:
Stored size: 545 Bytes
Contents
require 'system_builder' require 'system_builder/task' def working_dir(name, type) directory = "/var/tmp/system-builder/#{name}/#{type}" mkdir_p directory directory end SystemBuilder::Task.new(:simple_test) do SystemBuilder::DiskImage.new(working_dir("simple_test", :disk)).tap do |image| image.boot = SystemBuilder::DebianBoot.new(working_dir("simple_test", :boot)).tap do |boot| boot.mirror = "http://127.0.0.1:9999/debian" end image.boot.configure do |chroot| chroot.apt_install :sudo end end end
Version data entries
20 entries across 20 versions & 1 rubygems