Sha256: 71118264a01696a1da076edfd252639d544649421ae4a12aec87c094cbdbee3e

Contents?: true

Size: 1.16 KB

Versions: 47

Compression:

Stored size: 1.16 KB

Contents

module Picky

  module Generators

    module AllInOne

      # Generates a new Picky Sinatra/Unicorn combined Client/Server Example.
      #
      # Example:
      #   > picky-generate all_in_one my_client_server_directory
      #
      class Sinatra < Picky::Generators::Base

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

        #
        #
        def generate
          exclaim "Setting up Picky Sinatra Client/Server \"#{name}\"."
          create_target_directory
          copy_all_files expand_prototype_path('server/shared')
          copy_all_files
          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. unicorn -c unicorn.rb"
          exclaim "5. open http://localhost:8080/"
          exclaim "6. 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

47 entries across 47 versions & 1 rubygems

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