Sha256: 3fb3cf447217d897f83fb414724df8e31c7bc2e04b3b18c0f8b5428ea85a2b71

Contents?: true

Size: 878 Bytes

Versions: 2

Compression:

Stored size: 878 Bytes

Contents

module Picky

  module Generators

    module Client

      # Generates a new Picky Sinatra Client Example.
      #
      # Example:
      #   > picky-generate sinatra_client my_lovely_sinatra
      #
      class Sinatra < Picky::Generators::Base

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

        #
        #
        def generate
          generate_for "Sinatra Client",
          [
            'shared/both',
            'shared/client'
          ],
          [
            "cd #{name}",
            "bundle install",
            "rake index",
            "unicorn -p 3000 # (optional) Or use your favorite web server.",
            "open http://localhost:3000/",
            "rake todo # (optional) Shows you where Picky needs input from you."
          ]
        end

      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picky-generators-4.12.3 lib/picky-generators/generators/client/sinatra.rb
picky-generators-4.12.2 lib/picky-generators/generators/client/sinatra.rb