Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hakobera committed Jul 17, 2016
1 parent c2a3631 commit c4a66d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/example.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
task :task1 do
requires :folder
param :day, type: :time, auto_bind: true, required: true
requires :folder

output do
target(:google_drive_file,
name: "test_#{day.strftime('%Y%m%d')}.txt",
parents: input.folder_id)
end

run do
log 'task1#run'
output.open('w') {|f| f.puts('done') }
end
end

task :folder, type: :google_drive_folder do
param_set :name, 'xyz'
name 'xyz'
end

0 comments on commit c4a66d1

Please sign in to comment.