cookbooks/fb_network_scripts/resources/redhat_interface.rb
# This can shellout because it's called within `converge_by`
This can shellout because it's called within `converge_by`
This can shellout because it ' s called within ` converge_by `
def stop(interface)
  if ::File.exist?("/etc/sysconfig/network-scripts/ifcfg-#{interface}")
    cmd = "/sbin/ifdown #{interface}"
  else
    cmd = "/sbin/ifconfig #{interface} down"
  end
  s = Mixlib::ShellOut.new(cmd).run_command
  s.error!
end
def stop ( interface ) if :: File . exist? ( "/etc/sysconfig/network-scripts/ifcfg-#{interface}" ) cmd = "/sbin/ifdown #{interface}" else cmd = "/sbin/ifconfig #{interface} down" end s = Mixlib :: ShellOut . new ( cmd ) . run_command s . error! end
This can shellout because it's called within `converge_by`
This can shellout because it ' s called within ` converge_by `
# handle the case where we have an up interface without a config file
interface
<not_specific>