Class: Docka::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/docka/command.rb

Direct Known Subclasses

Docka::Commands::Docka::Setup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cli, *args) ⇒ Command



3
4
5
6
7
# File 'lib/docka/command.rb', line 3

def initialize(cli, *args)
  @cli = cli
  @args = args
  set_logger
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



18
19
20
# File 'lib/docka/command.rb', line 18

def args
  @args
end

#cliObject (readonly)

Returns the value of attribute cli.



18
19
20
# File 'lib/docka/command.rb', line 18

def cli
  @cli
end

Instance Method Details

#optionsObject



20
21
22
# File 'lib/docka/command.rb', line 20

def options
  cli.options
end