Sha256: 8f20566efacdf8b38a97999526604968e8be5c254a5621d27df7754474d2003a

Contents?: true

Size: 883 Bytes

Versions: 67

Compression:

Stored size: 883 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
          exclaim "Setting up Picky Sinatra Client \"#{name}\"."
          create_target_directory
          copy_all_files
          exclaim "\"#{name}\" is a great project name! Have fun :)\n"
          exclaim ""
          exclaim "Next steps:"
          exclaim "cd #{name}"
          exclaim "bundle install"
          exclaim "unicorn -p 3000 # (optional) Or use your favorite web server."
          exclaim ""
        end
  
      end
    
    end
  
  end
  
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
picky-generators-3.1.13 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.12 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.11 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.10 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.9 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.8 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.7 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.6 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.5 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.4 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.3 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.2 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.1 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.1.0 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.0.1 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.0.0 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.0.0.pre5 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.0.0.pre4 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.0.0.pre3 lib/picky-generators/generators/client/sinatra.rb
picky-generators-3.0.0.pre2 lib/picky-generators/generators/client/sinatra.rb