Sha256: 0d5c4de4a1447085350ffff956838197ba2458517fb276be7b8f0666fe059106

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

module Homura
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    def copy_locale_file
      template 'layout.en.yml.erb', 'config/locales/layout.en.yml'
    end

    def copy_layout_file
      copy_file 'application.html.slim',
                'app/views/layouts/application.html.slim'
    end

    def app_name
      Rails.root.split.last.to_s.titleize
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
homura-0.2.4 lib/generators/homura/install/install_generator.rb