1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
mobile-nixos/boot/init/tasks/directory.rb
2020-02-03 16:19:10 -05:00

15 lines
203 B
Ruby

# Creates full directory path
class Tasks::Directory < Task
def initialize(path)
@path = path
end
def run()
FileUtils.mkdir_p(@path)
end
def name()
"#{super}(#{@path})"
end
end