Remove the `after_build` option. This never made much sense.

master
Tom Vaughan 2013-06-11 00:14:34 -04:00
parent ef47e6321a
commit 8c9b79688a
2 changed files with 1 additions and 12 deletions

View File

@ -122,12 +122,6 @@ Adjust these values accordingly.
middleman build [--clean]
middleman deploy [--clean]
To automatically run middleman-deploy after `middleman build`, add:
deploy.after_build = true
Default is `false`.
## NOTES
When the `--clean` or `--no-clean` option is passed to `middleman

View File

@ -5,7 +5,7 @@ require "middleman-core"
module Middleman
module Deploy
class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :after_build, :force_build); end
class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :force_build); end
class << self
@ -22,13 +22,8 @@ module Middleman
options.remote ||= "origin"
options.branch ||= "gh-pages"
options.after_build ||= false
options.force_build ||= false
app.after_build do |builder|
::Middleman::Cli::Deploy.new.deploy if options.after_build
end
@@options = options
app.send :include, Helpers