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

Version Path
quilt_rails-1.12.2 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.12.1 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.12.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.11.1 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.10.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.9.2 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.9.1 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.9.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.8.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.7.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.6.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.5.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.4.1 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.4.0 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.3.3 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.3.2 lib/generators/sewing_kit/install_generator.rb
quilt_rails-1.3.1 lib/generators/sewing_kit/install_generator.rb