/
sinatra.rb
41 lines (32 loc) · 852 Bytes
/
sinatra.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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",
"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