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