Sha256: 67ffc8fd5f212f7998ff61d3659b3f7995d7acd4320abf528c6b072c9d89d65c

Contents?: true

Size: 339 Bytes

Versions: 4

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module PicoApi
  module Generators
    module Commands
      class CopyTemplate < Base
        def call
          copy_file
        end

        private

        def copy_file
          FileUtils.cp(template_full_path, "#{project_name_snakecased}#{destination_path}")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pico_api-0.0.4 lib/pico_api/generators/commands/copy_template.rb
pico_api-0.0.3 lib/pico_api/generators/commands/copy_template.rb
pico_api-0.0.2 lib/pico_api/generators/commands/copy_template.rb
pico_api-0.0.1 lib/pico_api/generators/commands/copy_template.rb