Exception: Akabei::System::CommandFailed
- Defined in:
- lib/akabei/system.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(env, args, opts) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(env, args, opts) ⇒ CommandFailed
Returns a new instance of CommandFailed.
7 8 9 10 11 12 |
# File 'lib/akabei/system.rb', line 7 def initialize(env, args, opts) super("command failed: #{args.join(' ')}") @env = env @args = args @opts = opts end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/akabei/system.rb', line 6 def args @args end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
6 7 8 |
# File 'lib/akabei/system.rb', line 6 def env @env end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
6 7 8 |
# File 'lib/akabei/system.rb', line 6 def opts @opts end |