Sha256: 8aebe436ab13db78e8456c53d2bacd3fdbefbb72f5954deac50fb4fb5562301d

Contents?: true

Size: 521 Bytes

Versions: 19

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

module Totoro
  class InitGenerator < Rails::Generators::Base
    source_root File.expand_path('templates', __dir__)
    desc 'Generate totoro config file'

    def copy_config_file
      template 'create_totoro_failed_messages.rb', File.join('db/migrate', "#{Time.now.strftime('%Y%m%d%H%M%S')}_create_totoro_failed_messages.rb")
      template 'totoro.yml', File.join('config', 'totoro.yml')
      template 'initializer.rb', File.join('config/initializers', 'totoro.rb')
    end
  end
end

Version data entries

19 entries across 18 versions & 1 rubygems

Version Path
totoro-1.0.7 lib/generators/totoro/init_generator.rb
totoro-1.0.6 pkg/totoro-1.0.5/lib/generators/totoro/init_generator.rb
totoro-1.0.6 lib/generators/totoro/init_generator.rb
totoro-1.0.5 lib/generators/totoro/init_generator.rb
totoro-1.0.4 lib/generators/totoro/init_generator.rb
totoro-1.0.3 lib/generators/totoro/init_generator.rb
totoro-1.0.2 lib/generators/totoro/init_generator.rb
totoro-1.0.1 lib/generators/totoro/init_generator.rb
totoro-1.0.0 lib/generators/totoro/init_generator.rb
totoro-0.6.1 lib/generators/totoro/init_generator.rb
totoro-0.6.0 lib/generators/totoro/init_generator.rb
totoro-0.5.7 lib/generators/totoro/init_generator.rb
totoro-0.5.6 lib/generators/totoro/init_generator.rb
totoro-0.5.5 lib/generators/totoro/init_generator.rb
totoro-0.5.4 lib/generators/totoro/init_generator.rb
totoro-0.5.3 lib/generators/totoro/init_generator.rb
totoro-0.5.2 lib/generators/totoro/init_generator.rb
totoro-0.5.1 lib/generators/totoro/init_generator.rb
totoro-0.5.0 lib/generators/totoro/init_generator.rb