Method: Saga::Runner#new_file

Defined in:
lib/saga/runner.rb

#new_fileObject



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/saga/runner.rb', line 41

def new_file
  document = Saga::Document.new
  document.title = 'Title'
  document.authors << author
  document.stories[''] = [{
    description: 'As a writer I would like to write stories so developers can implement them.',
    id: 1,
    status: 'todo'
  }]
  document.definitions[''] = [{
    title: 'Writer',
    definition: 'Someone who is responsible for writing down requirements in the form of stories'
  }]

  Saga::Formatter.saga_format(document)
end