bin/pave in pave-0.0.8 vs bin/pave in pave-0.0.9
- old
+ new
@@ -15,23 +15,30 @@
info "pave - Command line tools for Concrete5."
info "By Jamon Holmgren"
case command.to_sym
when :new then Pave::Concrete.create(opt)
+ when :update then update_gem
when :help then show_help
when :virtualhost then info "`virtualhost` command not implemented yet."
when :dbcreate then info "`dbcreate` command not implemented yet."
when :db then info "`db` command not implemented yet."
else show_help
end
0 # Good!
end
+ def self.update_gem
+ sh "gem update pave"
+ end
+
def self.show_help
info "Commands:"
info " new <websitename>"
info " Downloads and configures a new Concrete5 website."
+ info " update"
+ info " Updates the pave gem to the latest version."
info ""
info "Future commands (not implemented yet):"
info " virtualhost <domain>"
info " Sets up a new virtualhost on Apache, pointing to the current folder."
info " dbcreate <dbname>"