Method: Brutal.generate!

Defined in:
lib/brutal.rb

.generate!Object



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/brutal.rb', line 13

def self.generate!
  yaml = File::Read.new.call
  hash = Yaml.parse(yaml)
  conf = Configuration.load(hash)

  ruby = Scaffold.new(conf.header,
                      conf.subject,
                      *conf.actuals,
                      **conf.contexts)

  File::Write.new.call(ruby)
end