Sha256: 47877d256b4e135dc4e88a70b6c517ef7f827271f974c64884b79b5c2f0e40af

Contents?: true

Size: 494 Bytes

Versions: 7

Compression:

Stored size: 494 Bytes

Contents

require 'eucalypt/eucalypt-blog/namespaces/blog/__base__'

module Eucalypt
  module Generators
    class Blog < Thor::Group
      def controller(route:)
        route = "/#{Inflect.route(route)}"
        config = {route: route}
        template File.join('controller','controller.tt'), File.join('app','controllers','blog_controller.rb'), config
        template File.join('controller','controller_spec.tt'), File.join('spec','controllers','blog_controller_spec.rb')
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eucalypt-0.2.2 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb
eucalypt-0.2.1 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb
eucalypt-0.2.0 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb
eucalypt-0.1.3 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb
eucalypt-0.1.2 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb
eucalypt-0.1.1 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb
eucalypt-0.1.0 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/controller.rb