mirror of
https://github.com/tailix/mrubyvisor.git
synced 2026-08-22 08:24:35 -04:00
Display cmdline and modules
This commit is contained in:
parent
7ef403fc5b
commit
511c3e8473
4 changed files with 51 additions and 1 deletions
1
rootfs/boot/foobar.rb
Normal file
1
rootfs/boot/foobar.rb
Normal file
|
|
@ -0,0 +1 @@
|
|||
puts 'Hello, World! Ruby modules work!'
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
set timeout=0
|
||||
|
||||
menuentry "mrubyvisor" {
|
||||
multiboot2 /boot/mrubyvisor.multiboot2
|
||||
multiboot2 /boot/mrubyvisor.multiboot2 Hello, kernel!
|
||||
module2 /boot/foobar.rb Hello, module foobar!
|
||||
module2 /boot/qwerty.rb Hello, module qwerty!
|
||||
}
|
||||
|
|
|
|||
3
rootfs/boot/qwerty.rb
Normal file
3
rootfs/boot/qwerty.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
hello = 'Hello, World'
|
||||
works = 'Ruby modules work'
|
||||
puts [hello, works].map { |s| "#{s}!" }.join ' '
|
||||
Loading…
Add table
Add a link
Reference in a new issue