Sha256: e0fbbf848f6d2a903a42be8eb4dde1b620c51309c7dbade74bbfe2e1d2f7c005

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators/migration'

module SeoOptimizer
  class FastConfigGenerator < Rails::Generators::Base
    source_root File.expand_path('templates', __dir__)
    desc 'Generates base setup file'
    class_option :pse, type: :boolean

    def call_commands
      generate 'seo_optimizer:meta_tags'
      generate 'seo_optimizer:errors_pages'
      generate 'seo_optimizer:setups'
      generate 'seo_optimizer:robots_files'
      rake 'sitemap:generate'
      return unless options[:pse]

      puts 'Ping search engines.'
      rake 'sitemap:ping_search_engines'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seo_optimizer-0.1.2 lib/generators/seo_optimizer/fast_config/fast_config_generator.rb