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



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def config
  @config
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def format
  @format
end

#helpObject

Returns the value of attribute help

Returns:

  • (Object)

    the current value of help



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def help
  @help
end

#policyObject

Returns the value of attribute policy

Returns:

  • (Object)

    the current value of policy



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def policy
  @policy
end

#profileObject

Returns the value of attribute profile

Returns:

  • (Object)

    the current value of profile



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def profile
  @profile
end

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def query
  @query
end

#yaml_aliasesObject

Returns the value of attribute yaml_aliases

Returns:

  • (Object)

    the current value of yaml_aliases



11
12
13
# File 'lib/ruby/rego/cli.rb', line 11

def yaml_aliases
  @yaml_aliases
end

Instance Method Details

#help?Boolean

Check whether help output was requested.

Returns:

  • (Boolean)


18
19
20
# File 'lib/ruby/rego/cli.rb', line 18

def help?
  help
end

#profile?Boolean

Check whether profiling output was requested.

Returns:

  • (Boolean)


25
26
27
# File 'lib/ruby/rego/cli.rb', line 25

def profile?
  profile
end