1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-19 05:51:52 +03:00
mobile-nixos/boot/init/tasks/splash.rb

18 lines
319 B
Ruby
Raw Normal View History

2019-12-23 06:32:34 +03:00
# Adds a minimal set of files required for logging-in.
class Tasks::Splash < Task
attr_reader :image
def initialize(image)
add_dependency(:SingletonTask, :Graphics)
@image = image
end
def run()
System.run("ply-image", "/splash.#{image}.png")
end
def name()
"#{super}(#{image})"
end
end