Sha256: 6f31ad4be062e7eb8bdb82005e1077b9ba901170d69efd22899d19807be0f7ee
Contents?: true
Size: 714 Bytes
Versions: 3
Compression:
Stored size: 714 Bytes
Contents
# frozen_string_literal: true module PicoApi module Generators module Commands class CreateConfigDatabaseYml def self.call(project_name) file_copier = ::PicoApi::Generators::FileCopier.build(project_name) new(file_copier).call end def initialize(file_copier) @file_copier = file_copier end def call file_copier.copy(template_file_path, destination_path) end private attr_reader :file_copier def template_file_path '/generators/templates/config/database.yml' end def destination_path '/config/database.yml' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems