1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 13:31:36 +03:00
mobile-nixos/boot/init/tasks/proc.rb
2020-02-03 16:19:10 -05:00

12 lines
196 B
Ruby

# 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