Sha256: 06b83b7b49901085744b91fc86d4c6ff59aa5a67c0bfed7b5287088793fe9450

Contents?: true

Size: 453 Bytes

Versions: 17

Compression:

Stored size: 453 Bytes

Contents

require 'thor'
require 'active_support/core_ext/string'

module Napa
  module Generators
    class ScaffoldGenerator < Thor::Group
      include Thor::Actions

      source_root "#{File.dirname(__FILE__)}/templates/scaffold"

      argument :app_name
      argument :app_path, optional: true

      def generate
        say 'Generating scaffold...'

        directory ".", (app_path || app_name)

        say 'Done!', :green
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
napa-0.1.29 lib/napa/generators/scaffold_generator.rb
napa-0.1.28 lib/napa/generators/scaffold_generator.rb
napa-0.1.26 lib/napa/generators/scaffold_generator.rb
napa-0.1.25 lib/napa/generators/scaffold_generator.rb
napa-0.1.24 lib/napa/generators/scaffold_generator.rb
napa-0.1.23 lib/napa/generators/scaffold_generator.rb
napa-0.1.22 lib/napa/generators/scaffold_generator.rb
napa-0.1.21 lib/napa/generators/scaffold_generator.rb
napa-0.1.20 lib/napa/generators/scaffold_generator.rb
napa-0.1.19 lib/napa/generators/scaffold_generator.rb
napa-0.1.18 lib/napa/generators/scaffold_generator.rb
napa-0.1.17 lib/napa/generators/scaffold_generator.rb
napa-0.1.16 lib/napa/generators/scaffold_generator.rb
napa-0.1.15 lib/napa/generators/scaffold_generator.rb
napa-0.1.14 lib/napa/generators/scaffold_generator.rb
napa-0.1.12 lib/napa/generators/scaffold_generator.rb
napa-0.1.13 lib/napa/generators/scaffold_generator.rb