1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 21:41:53 +03:00
mobile-nixos/boot/init/tasks/directory.rb

15 lines
203 B
Ruby
Raw Normal View History

2019-12-23 06:32:34 +03:00
# 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