mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 05:21:47 +03:00
12 lines
196 B
Ruby
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
|