bin/plezi in plezi-0.8.4 vs bin/plezi in plezi-0.8.5
- old
+ new
@@ -3,10 +3,11 @@
# count lines of code with: ^[ \t]*[\w\d\"\(\{\@\[\]\}\)\:\'\.\*\&]+.*$
require 'irb'
require 'securerandom'
+
##########
# this is the template writer
#
# you can update it by aliasing the old initialize and writing adding to it:
#
@@ -70,10 +71,12 @@
app_tree["config"]["redis.rb"] ||= (IO.read(::File.expand_path(File.join("..", "..", "resources" ,"redis_config.rb"), __FILE__))).gsub('appsecret', "#{ARGV[1]}_#{SecureRandom.hex}")
#set up database stub folders
app_tree["db"] ||= {}
app_tree["db"]["migrate"] ||= {}
+ app_tree["db"]["fixtures"] ||= {}
+ app_tree["db"]["config.yml"] ||= IO.read(::File.expand_path(File.join("..", "..", "resources" ,"database.yml"), __FILE__))
#set up the extras folder, to be filled with future goodies.
app_tree["extras"] ||= {}
app_tree["extras"]["config.ru"] ||= IO.read ::File.expand_path(File.join("..", "..", "resources" ,"config.ru"), __FILE__)
@@ -202,9 +205,13 @@
##
## Start the Build script
##
######################################################################
######################################################################
+
+# update with http://ruby-doc.org/stdlib-2.2.0/libdoc/optparse/rdoc/OptionParser.html
+
+# require 'optparser'
if ARGV[0] == 'new' || ARGV[0] == 'n' || ARGV[0] == "force"
#########
## set up building environment
BUILDING_PLEZI_TEMPLATE = true