Sha256: 5d79adf9085e2d44d52c621e75c037862755a9c9cf0963ea6e5a6ace0ea20cfa

Contents?: true

Size: 1.04 KB

Versions: 31

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('server/shared')
          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

31 entries across 31 versions & 1 rubygems

Version Path
picky-generators-4.0.0pre1 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.16 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.15 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.14 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.13 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.12 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.11 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.10 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.9 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.8 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.7 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.6 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.4 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.3 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.2 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.1 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.6.0 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.5.4 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.5.3 lib/picky-generators/generators/server/sinatra.rb
picky-generators-3.5.2 lib/picky-generators/generators/server/sinatra.rb