jhpy 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/jhpy +11 -3
- data/lib/jhpy/version.rb +1 -1
- metadata +1 -1
data/bin/jhpy
CHANGED
@@ -20,14 +20,22 @@ opt_parser = OptionParser.new do |opt|
|
|
20
20
|
puts ""; puts "Help:"
|
21
21
|
puts "--deploy: deploy your application to google app engine,"
|
22
22
|
puts "--help: show this page,"
|
23
|
+
puts "--new: create a complete structured template ready to test,"
|
23
24
|
puts "--quick: create a quick template ready to test,"
|
24
25
|
puts "--test [PORT]: start the local server on the given port,"
|
25
26
|
puts "--version: echo the version number of this utility."
|
26
27
|
end
|
27
28
|
|
28
29
|
opt.on("-n", "--new") do
|
29
|
-
|
30
|
-
|
30
|
+
print "Creating structure setup..."
|
31
|
+
print `mkdir static; cd static; mkdir css; mkdir img; mkdir js; cd ..`
|
32
|
+
print `mkdir templates; mkdir entities; mkdir handlers; mkdir lib`
|
33
|
+
print `touch entities/__init__.py; touch handlers/__init__.py; touch lib/__init__.py`
|
34
|
+
print `curl https://raw.github.com/djwatt5/jhpy/master/downloads/main.py -o main.py -s`
|
35
|
+
print `curl https://raw.github.com/djwatt5/jhpy/master/downloads/app.yaml -o app.yaml -s`
|
36
|
+
print `curl https://raw.github.com/djwatt5/jhpy/master/downloads/jhpy.py -o lib/jhpy.py -s`
|
37
|
+
print `curl https://raw.github.com/djwatt5/jhpy/master/downloads/index.py -o handlers/index.py -s`
|
38
|
+
puts `echo "Finished!"`
|
31
39
|
end
|
32
40
|
|
33
41
|
opt.on("-q", "--quick") do
|
@@ -50,7 +58,7 @@ opt_parser = OptionParser.new do |opt|
|
|
50
58
|
end
|
51
59
|
|
52
60
|
opt.on("-v", "--version") do
|
53
|
-
puts "JHPY Command-line: 1.
|
61
|
+
puts "JHPY Command-line: 1.2.0"
|
54
62
|
end
|
55
63
|
end
|
56
64
|
|
data/lib/jhpy/version.rb
CHANGED