Method: Rzo::App::Subcommand#initialize

Defined in:
lib/rzo/app/subcommand.rb

#initialize(opts = {}, stdout = $stdout, stderr = $stderr) ⇒ Subcommand

Initialize a subcommand with options injected by the application controller.

controller.

Parameters:

  • opts (Hash) (defaults to: {})

    the Options hash initialized by the Application



41
42
43
44
45
46
47
# File 'lib/rzo/app/subcommand.rb', line 41

def initialize(opts = {}, stdout = $stdout, stderr = $stderr)
  @opts = opts
  @stdout = stdout
  @stderr = stderr
  reset_logging!(opts)
  @pwd = Dir.pwd
end