Method: Chef::FileContentManagement::Deploy.strategy
- Defined in:
- lib/chef/file_content_management/deploy.rb
.strategy(atomic_update) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/chef/file_content_management/deploy.rb', line 29 def self.strategy(atomic_update) if ChefConfig::Config.target_mode? TargetIO::Deploy.new elsif atomic_update ChefUtils.windows? ? MvWindows.new : MvUnix.new else Cp.new end end |