Sha256: dd4e5f2c594b996885d130863de61ed178f454be496ca0a0feca1783ebd97cc7
Contents?: true
Size: 1.11 KB
Versions: 14
Compression:
Stored size: 1.11 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') copy_all_files expand_prototype_path('shared/both') 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
14 entries across 14 versions & 1 rubygems