Sha256: 0d31fe9031f2bf4a0f70e00ecbf3023ee96b92410e2bae7add639f08fd7bc7c7
Contents?: true
Size: 729 Bytes
Versions: 3
Compression:
Stored size: 729 Bytes
Contents
# frozen_string_literal: true module PicoApi module Generators module Commands class CreateConfigApplication def self.call(project_name) file_creator = ::PicoApi::Generators::FileCreator.build(project_name) new(file_creator).call end def initialize(file_creator) @file_creator = file_creator end def call file_creator.create(template_file_path, destination_path) end private attr_reader :file_creator def template_file_path '/generators/templates/config/application.erb' end def destination_path '/config/application.rb' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems