lib/wire/resource/dhcp_range_config.rb
# removes configuration entry and restarts dnsmasq
removes configuration entry and restarts dnsmasq
removes configuration entry and restarts dnsmasq
def down
        filename = create_dnsmaqs_config_filename
        if File.exist?(filename) && File.readable?(filename) && File.file?(filename)
          $log.debug("Deleting #{filename}")
          LocalExecution.with("sudo rm #{filename}",
                              [], { :b_sudo => false, :b_shell => true }) do |up_exec_obj|
            up_exec_obj.run
          end
          restart_dnsmasq
        end
      rescue => exception
        $log.error("Error deleting dnsmasq config file/restarting dnsmasq, #{exception}")
        return false
      end
def down filename = create_dnsmaqs_config_filename if File . exist? ( filename ) && File . readable? ( filename ) && File . file? ( filename ) $log . debug ( "Deleting #{filename}" ) LocalExecution . with ( "sudo rm #{filename}" , [ ] , { :b_sudo => false , :b_shell => true } ) do | up_exec_obj | up_exec_obj . run end restart_dnsmasq end rescue => exception $log . error ( "Error deleting dnsmasq config file/restarting dnsmasq, #{exception}" ) return false end
removes configuration entry and restarts dnsmasq
removes configuration entry and restarts dnsmasq