class Picky::Generators::Client::Sinatra
Generates a new Picky
Sinatra
Client
Example.
Example:
> picky-generate sinatra_client my_lovely_sinatra
Public Class Methods
new(identifier, name, *args)
click to toggle source
Calls superclass method
# File lib/picky-generators/generators/client/sinatra.rb, line 14 def initialize identifier, name, *args super identifier, name, 'client/sinatra', *args end
Public Instance Methods
generate()
click to toggle source
# File lib/picky-generators/generators/client/sinatra.rb, line 20 def generate generate_for "Sinatra Client", [ 'shared/both', 'shared/client' ], [ "cd #{name}", "bundle install", "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