Sha256: 6185271b93b08f9f7d72d309cf080e6c09bd6cd2cc4fc47ce15362afe4b50e7a

Contents?: true

Size: 365 Bytes

Versions: 10

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

require "rails/generators"

module CableReady
  class InitializerGenerator < Rails::Generators::Base
    desc "Creates a CableReady initializer template in config/initializers"
    source_root File.expand_path("templates", __dir__)

    def copy_initializer_file
      copy_file "config/initializers/cable_ready.rb"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cable_ready-5.0.0.pre9 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre8 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre7 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre6 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre5 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre4 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre3 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre2 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre1 lib/generators/cable_ready/initializer_generator.rb
cable_ready-5.0.0.pre0 lib/generators/cable_ready/initializer_generator.rb