Sha256: e35d4a171f0b77c0151d9709f7e6eef24e7b6e4f80318e9939511ea55516e34a
Contents?: true
Size: 688 Bytes
Versions: 3
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true module PicoApi module Generators module Commands class CreateGitignore 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/.gitignore' end def destination_path '/.gitignore' end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems