Sha256: f439b729ef9e6834f4080196257fcf272d969ae1f7f83aa73f9e0f0024666845
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# Require core library require 'middleman-core' # Extension namespace module Middleman module Deploy @options class << self attr_reader :options attr_writer :options end class Extension < Extension option :deploy_method, nil option :host, nil option :port, nil option :user, nil option :password, nil option :path, nil option :clean, nil option :remote, nil option :branch, nil option :strategy, nil option :build_before, nil option :flags, nil option :commit_message, nil def initialize(app, options_hash = {}, &block) super yield options if block_given? # Default options for the rsync method. options.port ||= 22 options.clean ||= false # Default options for the git method. options.remote ||= 'origin' options.branch ||= 'gh-pages' options.strategy ||= :force_push options.commit_message ||= nil options.build_before ||= false end def after_configuration ::Middleman::Deploy.options = options end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-deploy-2.0.0.pre.alpha | lib/middleman-deploy/extension.rb |