Sha256: d4534ec90b2d8cc926ad8d9a296b02b6b3d1f62af44313a87fb29e68e1e97bc5

Contents?: true

Size: 1.06 KB

Versions: 51

Compression:

Stored size: 1.06 KB

Contents

module Picky

  module Generators

    module Server

      # Generates a new Picky Classic Server Example.
      #
      # Example:
      #   > picky-generate classic_server my_classic_directory
      #
      class Classic < Picky::Generators::Base

        def initialize identifier, name, *args
          super identifier, name, 'server/classic', *args
        end

        #
        #
        def generate
          exclaim "Setting up Picky Classic Server \"#{name}\"."
          create_target_directory
          copy_all_files
          copy_all_files expand_prototype_path('server/shared')
          exclaim "\"#{name}\" is a great project name! Have fun :)\n"
          exclaim ""
          exclaim "Next steps:"
          exclaim "1. cd #{name}"
          exclaim "2. bundle install"
          exclaim "3. rake index"
          exclaim "4. rake start"
          exclaim "5. rake todo      # (optional) shows you where Picky needs input from you"
          exclaim "                  #            if you want to define your own search."
        end

      end

    end

  end

end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
picky-generators-3.5.1 lib/picky-generators/generators/server/classic.rb
picky-generators-3.5.0 lib/picky-generators/generators/server/classic.rb
picky-generators-3.4.3 lib/picky-generators/generators/server/classic.rb
picky-generators-3.4.2 lib/picky-generators/generators/server/classic.rb
picky-generators-3.4.1 lib/picky-generators/generators/server/classic.rb
picky-generators-3.4.0 lib/picky-generators/generators/server/classic.rb
picky-generators-3.3.3 lib/picky-generators/generators/server/classic.rb
picky-generators-3.3.2 lib/picky-generators/generators/server/classic.rb
picky-generators-3.3.1 lib/picky-generators/generators/server/classic.rb
picky-generators-3.3.0 lib/picky-generators/generators/server/classic.rb
picky-generators-3.2.0 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.13 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.12 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.11 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.10 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.9 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.8 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.7 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.6 lib/picky-generators/generators/server/classic.rb
picky-generators-3.1.5 lib/picky-generators/generators/server/classic.rb