Sha256: 0874c84c1d1a24615b1ec0a79e0a68d7107e2e9c97317948ad7feb2bafad342d
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module Clearest class ApplicationBuilder def initialize(_options = {}) _options[:template_map] = { 'main.rb' => [:dsn] } Clearest::FoldersGenerator::new _options Clearest::FilesCopyGenerator::new _options Clearest::TemplatesGenerator::new _options File.open("#{_options[:target_path]}/#{_options[:project_name]}/application.yml", 'w') {|f| f.write _options.to_yaml } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clearest-0.0.1a | lib/clearest/builders/1_application.rb |