Exception: Akabei::System::CommandFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/akabei/system.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



6
7
8
# File 'lib/akabei/system.rb', line 6

def args
  @args
end

#envObject (readonly)

Returns the value of attribute env.



6
7
8
# File 'lib/akabei/system.rb', line 6

def env
  @env
end

#optsObject (readonly)

Returns the value of attribute opts.



6
7
8
# File 'lib/akabei/system.rb', line 6

def opts
  @opts
end