mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 13:31:36 +03:00
18 lines
319 B
Ruby
18 lines
319 B
Ruby
# 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
|