Exception: SiteFuel::External::MalformedOptions
- Defined in:
- lib/sitefuel/external/AbstractExternalProgram.rb
Overview
AbstractExternalProgram#execute and friends have a somewhat strange syntax for accepting options and flags. This exception is raised when the syntax is malformed.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#program ⇒ Object
readonly
Returns the value of attribute program.
Instance Method Summary collapse
-
#initialize(program, options) ⇒ MalformedOptions
constructor
A new instance of MalformedOptions.
- #to_s ⇒ Object
Constructor Details
#initialize(program, options) ⇒ MalformedOptions
Returns a new instance of MalformedOptions.
90 91 92 93 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 90 def initialize(program, ) @program = program @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
89 90 91 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 89 def @options end |
#program ⇒ Object (readonly)
Returns the value of attribute program.
89 90 91 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 89 def program @program end |
Instance Method Details
#to_s ⇒ Object
95 96 97 98 |
# File 'lib/sitefuel/external/AbstractExternalProgram.rb', line 95 def to_s 'Program %s called with a malformed options pattern: %s' % [program, .join(' ')] end |