# Require core library require "middleman-core" # Extension namespace module Middleman module Deploy class Options < Struct.new(: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.port ||= 22 options.clean ||= false @@options = options app.send :include, Helpers app.after_configuration do if (!options.host || !options.user || !options.path) raise <