Sha256: 5085f896672f58bacd69e3f79a5747d8477a9cc15ee2bb23fcc809e941b93946

Contents?: true

Size: 909 Bytes

Versions: 4

Compression:

Stored size: 909 Bytes

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
          generate_for "Sinatra Client/Server",
          [
            'shared/server',
            'shared/both',
            'shared/client'
          ],
          [
            "cd #{name}",
            "bundle install",
            "rake index",
            "unicorn -c unicorn.rb",
            "open http://localhost:8080/",
            "rake todo # (optional) Shows you where Picky needs input from you."
          ]
        end

      end

    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
picky-generators-4.12.5 lib/picky-generators/generators/all_in_one/sinatra.rb
picky-generators-4.12.4 lib/picky-generators/generators/all_in_one/sinatra.rb
picky-generators-4.12.3 lib/picky-generators/generators/all_in_one/sinatra.rb
picky-generators-4.12.2 lib/picky-generators/generators/all_in_one/sinatra.rb