# Require core library require "middleman-core" # Extension namespace module Middleman module Deploy class Options < Struct.new(:method, :host, :port, :user, :path, :clean); end class << self def options @@options end def registered(app, options_hash={}, &block) options = Options.new(options_hash) yield options if block_given? options.method ||= :rsync options.port ||= 22 options.clean ||= false @@options = options app.send :include, Helpers app.after_configuration do if (options.method == :rsync) if (!options.host || !options.user || !options.path) raise <