16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/amanuensis/cli.rb', line 16
def generate
Amanuensis.push = options.push
Amanuensis.tracker = options.tracker
Amanuensis.code_manager = options.code_manager
Amanuensis.version = options.version
Amanuensis.verbose = options.verbose
Amanuensis.release = options.release
if options.github.present?
options.github.each do |key, value|
Amanuensis::Github.send "#{key}=", value
end
end
if options.file.present?
options.file.each do |key, value|
Amanuensis::File.send "#{key}=", value
end
end
if options.trello.present?
options.trello.each do |key, value|
Amanuensis::Trello.send "#{key}=", value
end
end
if options.pivotal.present?
options.pivotal.each do |key, value|
Amanuensis::Pivotal.send "#{key}=", value
end
end
if options.mail.present?
pony = (options.mail)
Amanuensis::Mail.pony = pony
end
Amanuensis.generate
rescue ValidationError => e
puts e.message
end
|