bin/pave in pave-0.13.0 vs bin/pave in pave-0.14.0
- old
+ new
@@ -75,50 +75,52 @@
command :"virtualhost:create" do |c|
c.syntax = "pave virtualhost:create VHOST"
c.description = "Setup virtual host for Concrete5 project."
c.action do |args|
host = args.first || "#{File.basename(Dir.pwd)}.site"
- Pave::VirtualHost.new(host).create_vhost
+ dir = args[1] || Dir.pwd
+ Pave::VirtualHost.new(host, dir).create_vhost
end
end
alias_command :"vh:create", :"virtualhost:create"
command :"virtualhost:remove" do |c|
c.syntax = "pave virtualhost:remove VHOST"
c.description = "Delete virtual host."
c.action do |args|
host = args.first || "#{File.basename(Dir.pwd)}.site"
- Pave::VirtualHost.new(host).remove_vhost
+ dir = args[1] || Dir.pwd
+ Pave::VirtualHost.new(host, dir).remove_vhost
end
end
alias_command :"vh:remove", :"virtualhost:remove"
alias_command :"virtualhost:delete", :"virtualhost:remove"
alias_command :"vh:delete", :"virtualhost:remove"
command :"virtualhost:backup" do |c|
c.syntax = "pave virtualhost:backup"
c.description = "Back up virtual hosts file. Restore with `pave virtualhost:restore`."
c.action do
- Pave::VirtualHost.new("").backup_vhost
+ Pave::VirtualHost.backup_vhost
end
end
alias_command :"vh:backup", :"virtualhost:backup"
command :"virtualhost:restore" do |c|
c.syntax = "pave virtualhost:restore"
c.description = "Restore previously backed up virtual hosts file."
c.action do
- Pave::VirtualHost.new("").restore_vhost
+ Pave::VirtualHost.restore_vhost
end
end
alias_command :"vh:restore", :"virtualhost:restore"
command :"virtualhost:restart" do |c|
c.syntax = "pave virtualhost:restart"
c.description = "Restarts apache."
c.action do
- Pave::VirtualHost.new("").restart_apache
+ Pave::VirtualHost.restart_apache
end
end
alias_command :"vh:restart", :"virtualhost:restart"
command :"db:create" do |c|
@@ -240,20 +242,20 @@
end
end
command :"generate:theme" do |c|
c.syntax = "pave generate:theme THEME_NAME"
- c.description = "Set up a blank theme with sass."
+ c.description = "Set up a blank theme with Sass and CoffeeScript support."
c.action do |args|
name = args.first || "#{File.basename(Dir.pwd)}"
Pave::Theme.create(name)
end
end
alias_command :"g:theme", :"generate:theme"
command :watch do |c|
c.syntax = "pave watch BROWSER"
- c.description = "Watch for sass changes."
+ c.description = "Watch for Sass and CoffeeScript changes."
c.action do |args|
browser = args.first || "chrome"
name = args.last || "#{File.basename(Dir.pwd)}"
Pave::Theme.new(name).watch(browser)
end