class SSLyze::Program

Represents the `sslyze` command line utility.

Public Class Methods

analyze(options={},exec_options={},&block) click to toggle source

Finds the `sslyze` script and runs it.

@param [Hash{Symbol => Object}] options

Additional options for `sslyze`.

@param [Hash{Symbol => Object}] exec_options

Additional exec-options.

@yield [task]

If a block is given, it will be passed a task object
used to specify options for `sslyze`.

@yieldparam [Task] task

The sslyze task object.

@return [Boolean]

Specifies whether the command exited normally.

@see rubydoc.info/gems/rprogram/0.3.0/RProgram/Program#run-instance_method

For additional exec-options.
# File lib/sslyze/program.rb, line 35
def self.analyze(options={},exec_options={},&block)
  find.analyze(options,exec_options,&block)
end

Public Instance Methods

analyze(options={},exec_options={},&block) click to toggle source

Runs `sslyze`.

@param [Hash{Symbol => Object}] options

Additional options for `sslyze`.

@param [Hash{Symbol => Object}] exec_options

Additional exec-options.

@yield [task]

If a block is given, it will be passed a task object
used to specify options for `sslyze`.

@yieldparam [Task] task

The sslyze task object.

@return [Boolean]

Specifies whether the command exited normally.

@see rubydoc.info/gems/rprogram/0.3.0/RProgram/Program#run-instance_method

For additional exec-options.
# File lib/sslyze/program.rb, line 61
def analyze(options={},exec_options={},&block)
  run_task(Task.new(options,&block),exec_options)
end