bin/pave in pave-0.0.11 vs bin/pave in pave-0.0.12
- old
+ new
@@ -11,13 +11,10 @@
main do |command, opt| # Add args you want: |like,so|
# your program code here
# You can access CLI options via
# the options Hash
- 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."
@@ -29,14 +26,19 @@
0 # Good!
end
def self.update_gem
+ info "Updating pave..."
sh "gem update pave"
+ info "Updated."
end
def self.show_help
+ info "pave - Command line tools for Concrete5."
+ info "By Jamon Holmgren"
+ info ""
info "Commands:"
info " new <websitename>"
info " Downloads and configures a new Concrete5 website."
info " update"
info " Updates the pave gem to the latest version."
@@ -53,9 +55,12 @@
info " db upload"
info " Uploads the local database to the remote one, replacing what's there."
end
def self.create(name)
+ info "pave - Command line tools for Concrete5."
+ info "By Jamon Holmgren"
+ info ""
info "Creating #{name}..."
sleep 2
info "Done."
end