Sha256: 90685e8e3bd9cab054c8d4b7749f0428364f2fdca9668dd7fd2e64b9aa05a060
Contents?: true
Size: 699 Bytes
Versions: 3
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true module PicoApi module Generators module Commands class CreateConfigRu 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.ru.erb' end def destination_path '/config.ru' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems