1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-20 22:41:48 +03:00
mobile-nixos/boot/init/tasks/proc.rb

12 lines
196 B
Ruby
Raw Normal View History

2019-12-23 23:37:23 +03:00
# Runs a proc like a task.
# Useful to add some debugging commands depending on other tasks.
class Tasks::Proc < Task
def initialize(p)
@proc = p
end
def run()
@proc.call
end
end