Sha256: 596220bd3755c9ff4f090b7c526defc7772bb06a8976487dbd9d724637b39263

Contents?: true

Size: 368 Bytes

Versions: 8

Compression:

Stored size: 368 Bytes

Contents

module SunSword
  class InitGenerator < Rails::Generators::Base
    source_root File.expand_path('templates_init', __dir__)

    def setup_configuration
      copy_initializer('sun_sword')
    end

    private

    def copy_initializer(file_name)
      template "config/initializers/#{file_name}.rb", File.join("config/initializers/#{file_name}.rb")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sun-sword-0.0.9 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.8 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.7 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.6 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.5 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.4 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.3 lib/generators/sun_sword/init_generator.rb
sun-sword-0.0.2 lib/generators/sun_sword/init_generator.rb