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



28
29
30
31
32
33
34
# File 'lib/chef/file_content_management/deploy.rb', line 28

def self.strategy(atomic_update)
  if atomic_update
    ChefUtils.windows? ? MvWindows.new : MvUnix.new
  else
    Cp.new
  end
end