Class: TargetIO::Dir

Inherits:
Object
  • Object
show all
Defined in:
lib/chef/target_io/dir.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/dir.rb', line 4

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

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