class Aruba::Platforms::ArubaFileCreator
@private
This class is not meant to be used directly by users.
Normal File Creator
def call(path, content, check_presence = false)
-
check_presence
(Boolean
) -- (false) -
content
(Object
) -- -
path
(String
) --
def call(path, content, check_presence = false) if check_presence && !Aruba.platform.file?(path) raise "Expected #{path} to be present" end Aruba.platform.mkdir(File.dirname(path)) File.write(path, content) self end