Module: Ehpt
- Defined in:
- lib/ehpt.rb,
lib/ehpt/base.rb,
lib/ehpt/get_project.rb,
lib/ehpt/create_story.rb,
lib/ehpt/create_stories.rb,
lib/ehpt/create_story_attributes.rb,
lib/ehpt/get_user_id_from_initial.rb
Defined Under Namespace
Classes: Base, CreateStories, CreateStory, CreateStoryAttributes, GetProject, GetUserIdFromInitial
Class Method Summary
collapse
Class Method Details
.call(csv_file, token, project_id) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/ehpt.rb', line 12
def self.call(csv_file, token, project_id)
project_getter = Ehpt::GetProject.new(token, project_id)
project_getter.call
if project_getter.error?
puts "===== Errors ====="
pp project_getter.errors
return
end
set_project(project_getter.data)
puts "Found project: #{project_getter.data.name}"
stories_creator = Ehpt::CreateStories.new(csv_file)
stories_creator.call
puts "Done"
if stories_creator.error?
puts "===== Errors ====="
pp stories_creator.errors
end
if stories_creator.warning?
puts "===== Warnings ====="
pp stories_creator.warnings
end
end
|
.project ⇒ Object
41
42
43
|
# File 'lib/ehpt.rb', line 41
def self.project
@@project
end
|