Sha256: fe307049518e348ac734fee03a0d2c93f14fd43075e15ec4914020491c25f390

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

require 'thor'
require 'padrino-gen' unless defined?(Padrino::Generators)
module Padrino
  module Generators

    class Backend < Thor::Group

      # Add this generator to our padrino-gen
      Padrino::Generators.add_generator(:backend, self)

      # Define the source template root
      def self.source_root; File.expand_path(File.dirname(__FILE__)); end
      def self.banner; "padrino-gen controller [name]"; end

      # Include related modules
      include Thor::Actions
      include Padrino::Generators::Actions

      desc "Description:\n\n\tpadrino-gen controller generates a new Padrino Admin"

      class_option :root, :aliases => '-r', :default => nil, :type => :string
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
padrino-admin-0.5.0 lib/padrino-admin/generators/backend.rb
padrino-admin-0.4.6 lib/padrino-admin/generators/backend.rb
padrino-admin-0.4.5 lib/padrino-admin/generators/backend.rb