Module: Dato::Dump::Dsl::CreatePost

Included in:
Directory, Root
Defined in:
lib/dato/dump/dsl/create_post.rb

Instance Method Summary collapse

Instance Method Details

#create_post(path, &block) ⇒ Object



25
26
27
28
29
30
# File 'lib/dato/dump/dsl/create_post.rb', line 25

def create_post(path, &block)
  operation = Operation::CreatePost.new(operations, path)
  DataFile.new(operation, &block)

  operations.add operation
end