Sha256: 5ec86093e7096b44630538bb910c1b69abc8f46c0e5ba5f4880fdb3ca95b46a6

Contents?: true

Size: 781 Bytes

Versions: 2

Compression:

Stored size: 781 Bytes

Contents

module Exoskeleton
  module Generators
    class FoldersGenerator < Rails::Generators::Base

      def build_folder_structure

        views_folder = "app/assets/javascripts/backbone/views"
        models_folder = "app/assets/javascripts/backbone/models"
        collections_folder = "app/assets/javascripts/backbone/collections"
        templates_folder = "app/assets/javascripts/backbone/templates"

        empty_directory views_folder
        create_file "#{views_folder}/.keep"

        empty_directory models_folder
        create_file "#{models_folder}/.keep"

        empty_directory collections_folder
        create_file "#{collections_folder}/.keep"

        empty_directory templates_folder
        create_file "#{templates_folder}/.keep"

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exoskeleton-0.0.6 lib/generators/exoskeleton/folders_generator.rb
exoskeleton-0.0.5 lib/generators/exoskeleton/folders_generator.rb