Module: Agave::Dump::Dsl::CreatePost

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

Instance Method Summary collapse

Instance Method Details

#create_post(path, &block) ⇒ Object



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

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

  operations.add operation
end