lib/vagrant-orchestrate/config.rb in vagrant-orchestrate-0.7.2 vs lib/vagrant-orchestrate/config.rb in vagrant-orchestrate-0.8.0.pre.1
- old
+ new
@@ -9,18 +9,20 @@
attr_accessor :force_push
attr_accessor :tracker_host
attr_accessor :tracker_logging_enabled
attr_accessor :credentials
attr_accessor :disable_commit_guard
+ attr_accessor :take_synced_folder_ownership
def initialize
@filter_managed_commands = UNSET_VALUE
@strategy = UNSET_VALUE
@force_push = UNSET_VALUE
@tracker_host = UNSET_VALUE
@tracker_logging_enabled = UNSET_VALUE
@disable_commit_guard = UNSET_VALUE
+ @take_synced_folder_ownership = UNSET_VALUE
@credentials = Credentials.new
end
def credentials
yield @credentials if block_given?
@@ -48,9 +50,10 @@
@strategy = :serial if @strategy == UNSET_VALUE
@force_push = false if @force_push == UNSET_VALUE
@tracker_host = nil if @tracker_host == UNSET_VALUE
@tracker_logging_enabled = true if @tracker_logging_enabled == UNSET_VALUE
@disable_commit_guard = false if @disable_commit_guard == UNSET_VALUE
+ @take_synced_folder_ownership = true if @take_synced_folder_ownership == UNSET_VALUE
@credentials = nil if @credentials.unset?
@credentials.finalize! if @credentials
end
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity