class Ronin::CLI::Commands::New::DnsProxy

Creates a new [ronin-dns-proxy] script.

[ronin-dns-proxy]: github.com/ronin-rb/ronin-dns-proxy#readme

## Usage

ronin new dns-proxy PATH

## Options

-H, --host IP                    The IP to listen on (Default: 127.0.0.1)
-p, --port PORT                  The port number to listen on (Default: 2345)
-h, --help                       Print help information

## Arguments

PATH                             The script file to create

@since 2.1.0

Public Instance Methods

run(path) click to toggle source

Runs the ‘ronin new dns-proxy` command.

@param [String] path

The path to the new script file to create.
# File lib/ronin/cli/commands/new/dns_proxy.rb, line 87
def run(path)
  @host = options[:host]
  @port = options[:port]

  erb 'dns_proxy.rb.erb', path
  chmod '+x', path
end