Class: TargetIO::File

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/target_io/file.rb

Class Method Summary collapse

Class Method Details

.method_missing(m, *args, **kwargs, &block) ⇒ Object



4
5
6
7
8
9
# File 'lib/chef/target_io/file.rb', line 4

def method_missing(m, *args, **kwargs, &block)
  Chef::Log.debug format("File::%s(%s)", m.to_s, args.join(", "))

  backend = ChefConfig::Config.target_mode? ? TrainCompat::File : ::File
  backend.send(m, *args, **kwargs, &block)
end