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