bin/plezi in plezi-0.12.15 vs bin/plezi in plezi-0.12.16
- old
+ new
@@ -1,10 +1,11 @@
#!/usr/bin/env ruby
$0="Plezi Builder"
# count lines of code with: ^[ \t]*[\w\d\"\(\{\@\[\]\}\)\:\'\.\*\&]+.*$
require 'irb'
+require 'benchmark'
require 'securerandom'
require 'plezi/builders/builder'
require 'plezi/builders/app_builder'
@@ -68,16 +69,13 @@
(ARGV[0] == 'mini' || ARGV[0] == 'm' ) ? template.build_mini(ARGV[1]) : template.build(ARGV[1])
elsif ARGV[0] == 'server' || ARGV[0] == 'start' || ARGV[0] == 's'
ARGV.shift
load File.expand_path(Dir["."][0], (File.expand_path(Dir["."][0]).split(/[\\\/]/).last) ) rescue load( File.expand_path(Dir["."][0], (File.expand_path(Dir["."][0]).split(/[\\\/]/).last ) ) )
elsif ARGV[0] == 'console' || ARGV[0] == 'c'
- NO_PLEZI_AUTO_START ||= true
load File.expand_path(Dir["."][0], (File.expand_path(Dir["."][0]).split(/[\\\/]/).last) ) rescue load( File.expand_path(Dir["."][0], (File.expand_path(Dir["."][0]).split(/[\\\/]/).last) ) )
ARGV.clear
- IRB.setup nil
- IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context
- require 'irb/ext/multi-irb'
- IRB.irb nil, self
+ Iodine.protocol = nil
+ IRB.start
else
puts ""
puts "Plezi fast web app starter.".pink
puts "use: plezi new appname"
puts "or: plezi new appname with template-gem-to-put-in another-template-gem-to-put"