Class: RegoValidate::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby/rego/cli.rb,
lib/ruby/rego/cli.rb

Overview

CLI option values.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def config
  @config
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def format
  @format
end

#helpObject

Returns the value of attribute help

Returns:

  • (Object)

    the current value of help



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def help
  @help
end

#policyObject

Returns the value of attribute policy

Returns:

  • (Object)

    the current value of policy



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def policy
  @policy
end

#profileObject

Returns the value of attribute profile

Returns:

  • (Object)

    the current value of profile



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def profile
  @profile
end

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def query
  @query
end

#yaml_aliasesObject

Returns the value of attribute yaml_aliases

Returns:

  • (Object)

    the current value of yaml_aliases



16
17
18
# File 'lib/ruby/rego/cli.rb', line 16

def yaml_aliases
  @yaml_aliases
end

Instance Method Details

#help?Boolean

Check whether help output was requested.

Returns:

  • (Boolean)


23
24
25
# File 'lib/ruby/rego/cli.rb', line 23

def help?
  help
end

#profile?Boolean

Check whether profiling output was requested.

Returns:

  • (Boolean)


30
31
32
# File 'lib/ruby/rego/cli.rb', line 30

def profile?
  profile
end