Sha256: dcc27772343449affc173edc583bc379cbcef6d93a8ab83288c4196330a55223
Contents?: true
Size: 496 Bytes
Versions: 17
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module SewingKit class InstallGenerator < Rails::Generators::Base source_root File.expand_path('templates', __dir__) desc "This generator creates a sewing-kit config file." def create_config config_path = "config/sewing-kit.config.ts" if File.exist?(config_path) say "Sewing kit config already exists" else copy_file "sewing-kit.config.ts", config_path say "Sewing kit config" end end end end
Version data entries
17 entries across 17 versions & 1 rubygems