Sha256: d377efa39a7a2ac65642d2c694866d73adf2aaad7d6941b6b69e6c84ed94a286

Contents?: true

Size: 1.04 KB

Versions: 42

Compression:

Stored size: 1.04 KB

Contents

module Picky

  module Generators

    module Server

      # Generates a new Picky Sinatra/Unicorn Server Example.
      #
      # Example:
      #   > picky-generate sinatra_server my_sinatra_directory
      #
      class Sinatra < Picky::Generators::Base

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

        #
        #
        def generate
          exclaim "Setting up Picky Sinatra Server \"#{name}\"."
          create_target_directory
          copy_all_files
          copy_all_files expand_prototype_path('shared/server')
          exclaim "\"#{name}\" is a great project name! Have fun :)\n"
          exclaim ""
          exclaim "Next steps:"
          exclaim "1. cd #{name}"
          exclaim "2. rake index"
          exclaim "3. unicorn -c unicorn.rb"
          exclaim "4. 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

42 entries across 42 versions & 1 rubygems

Version Path
picky-generators-4.3.2 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.3.1 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.3.0 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.2.4 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.2.3 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.2.2 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.2.1 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.2.0 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.1.0 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.9 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.8 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.7 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.6 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.5 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.4 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.3 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.1 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.0 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.0pre6 lib/picky-generators/generators/server/sinatra.rb
picky-generators-4.0.0pre5 lib/picky-generators/generators/server/sinatra.rb