Class: Chef::FileContentManagement::Deploy

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/file_content_management/deploy.rb,
lib/chef/file_content_management/deploy/cp.rb,
lib/chef/file_content_management/deploy/mv_unix.rb,
lib/chef/file_content_management/deploy/mv_windows.rb

Defined Under Namespace

Classes: Cp, MvUnix, MvWindows

Class Method Summary collapse

Class Method Details

.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