Remove the after_build
option. This never made much sense.
This commit is contained in:
parent
ef47e6321a
commit
8c9b79688a
2 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue