lib/middleman-deploy/extension.rb in middleman-deploy-0.1.4 vs lib/middleman-deploy/extension.rb in middleman-deploy-0.2.0
- old
+ new
@@ -3,11 +3,11 @@
# Extension namespace
module Middleman
module Deploy
- class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :build_before, :flags); end
+ class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :strategy, :build_before, :flags); end
class << self
def options
@@options
@@ -20,11 +20,12 @@
# 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.remote ||= "origin"
+ options.branch ||= "gh-pages"
+ options.strategy ||= :force_push
options.build_before ||= false
@@options = options