diff --git a/README.md b/README.md index 54e0635..386da6a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/middleman-deploy/extension.rb b/lib/middleman-deploy/extension.rb index 8a049a7..ba7699d 100644 --- a/lib/middleman-deploy/extension.rb +++ b/lib/middleman-deploy/extension.rb @@ -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