Class: TargetIO::Etc
- Inherits:
-
Object
- Object
- TargetIO::Etc
- Defined in:
- lib/chef/target_io/etc.rb
Class Method Summary collapse
Class Method Details
.method_missing(m, *args, **kwargs, &block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/chef/target_io/etc.rb', line 4 def method_missing(m, *args, **kwargs, &block) Chef::Log.debug format("Etc::%s(%s)", m.to_s, args.join(", ")) if ChefConfig::Config.target_mode? && !Chef.run_context.transport_connection.os.unix? raise "Etc support only on Unix, this is " + Chef.run_context.transport_connection.platform.title end backend = ChefConfig::Config.target_mode? ? TrainCompat::Etc : ::Etc backend.send(m, *args, **kwargs, &block) end |