Class: Daemon::Command::BaseCommand Deprecated

Inherits:
Object
  • Object
show all
Includes:
UserInterface
Defined in:
lib/onapp/engine/command/base_command.rb

Overview

Deprecated.

Created for convenience Aggregates common methods of all commands

Direct Known Subclasses

StartCommand, StatusCommand, StopCommand

Instance Attribute Summary (collapse)

Attributes included from UserInterface

#err, #out

Instance Method Summary (collapse)

Methods included from UserInterface

#error, #say

Constructor Details

- (BaseCommand) initialize(options, out = $stdout, err = $stderr)

Returns a new instance of BaseCommand



13
14
15
16
17
# File 'lib/onapp/engine/command/base_command.rb', line 13

def initialize(options, out = $stdout, err = $stderr)
  @options = options
  @out = out
  @err = err
end

Instance Attribute Details

- (Object) options (readonly)

Returns the value of attribute options



11
12
13
# File 'lib/onapp/engine/command/base_command.rb', line 11

def options
  @options
end