class Tumugi::Plugin::GoogleDriveFolderTask
Public Instance Methods
output()
click to toggle source
# File lib/tumugi/plugin/task/google_drive_folder.rb, line 13 def output @output ||= Tumugi::Plugin::GoogleDriveFolderTarget.new(folder_id: folder_id, name: name, parents: parent.nil? ? nil : [parent]) end
run()
click to toggle source
# File lib/tumugi/plugin/task/google_drive_folder.rb, line 17 def run if output.exist? log "skip: #{output} is already exists" else log "create folder: #{output}" output.mkdir end end