jhpy 1.1.3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/jhpy +11 -3
  2. data/lib/jhpy/version.rb +1 -1
  3. 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
- puts "Creating structure setup..."
30
- puts "INFO: The structure template is still in development."
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.1.3"
61
+ puts "JHPY Command-line: 1.2.0"
54
62
  end
55
63
  end
56
64
 
data/lib/jhpy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JHPY
2
- VERSION = "1.1.3"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jhpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: