Class: SSLyze::Program

Inherits:
RProgram::Program
  • Object
show all
Defined in:
lib/sslyze/program.rb

Overview

Represents the sslyze command line utility.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.analyze(options = {}, exec_options = {}) {|task| ... } ⇒ Boolean

Finds the sslyze script and runs it.

Parameters:

  • options (Hash{Symbol => Object}) (defaults to: {})

    Additional options for sslyze.

  • exec_options (Hash{Symbol => Object}) (defaults to: {})

    Additional exec-options.

Yields:

  • (task)

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

Yield Parameters:

  • task (Task)

    The sslyze task object.

Returns:

  • (Boolean)

    Specifies whether the command exited normally.

See Also:



35
36
37
# File 'lib/sslyze/program.rb', line 35

def self.analyze(options={},exec_options={},&block)
  find.analyze(options,exec_options,&block)
end

Instance Method Details

#analyze(options = {}, exec_options = {}) {|task| ... } ⇒ Boolean

Runs sslyze.

Parameters:

  • options (Hash{Symbol => Object}) (defaults to: {})

    Additional options for sslyze.

  • exec_options (Hash{Symbol => Object}) (defaults to: {})

    Additional exec-options.

Yields:

  • (task)

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

Yield Parameters:

  • task (Task)

    The sslyze task object.

Returns:

  • (Boolean)

    Specifies whether the command exited normally.

See Also:



61
62
63
# File 'lib/sslyze/program.rb', line 61

def analyze(options={},exec_options={},&block)
  run_task(Task.new(options,&block),exec_options)
end