adding a flags option to override default rsync flags
This commit is contained in:
parent
63a9e82bd2
commit
5b1723ab34
2 changed files with 4 additions and 2 deletions
|
@ -139,7 +139,9 @@ EOF
|
||||||
|
|
||||||
puts "## Deploying via rsync to #{dest_url} port=#{port}"
|
puts "## Deploying via rsync to #{dest_url} port=#{port}"
|
||||||
|
|
||||||
command = "rsync -avze '" + "ssh -p #{port}" + "' #{self.inst.build_dir}/ #{dest_url}"
|
flags = !self.deploy_options.flags ? '-avze' : self.deploy_options.flags
|
||||||
|
|
||||||
|
command = "rsync " + flags + " '" + "ssh -p #{port}" + "' #{self.inst.build_dir}/ #{dest_url}"
|
||||||
|
|
||||||
if self.deploy_options.clean
|
if self.deploy_options.clean
|
||||||
command += " --delete"
|
command += " --delete"
|
||||||
|
|
|
@ -5,7 +5,7 @@ require "middleman-core"
|
||||||
module Middleman
|
module Middleman
|
||||||
module Deploy
|
module Deploy
|
||||||
|
|
||||||
class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :build_before); end
|
class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :password, :path, :clean, :remote, :branch, :build_before, :flags); end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue