Sha256: 81fc8ed6675303cfd0e7c92f46b9e86e7947f83cc07b17af84cb7e34ce5cf313

Contents?: true

Size: 423 Bytes

Versions: 5

Compression:

Stored size: 423 Bytes

Contents

require 'thor'

module HappySeed
  module Generators
    class StaticGenerator < Thor::Group
      include Thor::Actions
      source_root File.expand_path('../templates', __FILE__)
      def generate_rails_plugin
        # source_root = File.expand_path('../templates', __FILE__)
        args.shift
        app_name = args.shift

        self.destination_root = app_name

        directory "."
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/static/static_generator.rb
happy_seed-0.0.19 lib/generators/happy_seed/static/static_generator.rb
happy_seed-0.0.18 lib/generators/happy_seed/static/static_generator.rb
happy_seed-0.0.17 lib/generators/happy_seed/static/static_generator.rb
happy_seed-0.0.16 lib/generators/happy_seed/static/static_generator.rb