Sha256: 0c92637ff83ba471899d27ad221e9f3caae45371993449b5306b9bc7a5c8f3e5

Contents?: true

Size: 1.04 KB

Versions: 25

Compression:

Stored size: 1.04 KB

Contents

module Picky

  module Generators
  
    module Server

      # Generates a new empty Picky Unicorn Server.
      #
      # Example:
      #   > picky-generate unicorn_server my_lovely_unicorn
      #
      class EmptyUnicorn < Picky::Generators::Base
        
        def initialize identifier, name, *args
          super identifier, name, 'server/empty_unicorn', *args
        end
  
        #
        #
        def generate
          exclaim "Setting up Picky Unicorn Server \"#{name}\"."
          create_target_directory
          copy_all_files expand_prototype_path('server/shared_unicorn')
          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           # (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

25 entries across 25 versions & 1 rubygems

Version Path
picky-generators-1.5.4 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.5.3 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.5.2 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.5.1 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.5.0 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.4.3 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.4.2 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.4.1 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.4.0 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.3.4 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.3.3 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.3.2 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.3.1 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.3.0 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.2.4 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.2.3 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.2.2 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.2.1 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.2.0 lib/picky-generators/generators/server/empty_unicorn.rb
picky-generators-1.1.7 lib/picky-generators/generators/server/empty_unicorn.rb