Class: Kuby::CLIBase

Inherits:
Object
  • Object
show all
Defined in:
lib/kuby/cli_base.rb

Direct Known Subclasses

Docker::CLI

Instance Method Summary collapse

Instance Method Details

#after_execute(&block) ⇒ Object



15
16
17
18
# File 'lib/kuby/cli_base.rb', line 15

def after_execute(&block)
  @after_execute ||= []
  @after_execute << block
end

#before_execute(&block) ⇒ Object



10
11
12
13
# File 'lib/kuby/cli_base.rb', line 10

def before_execute(&block)
  @before_execute ||= []
  @before_execute << block
end

#last_statusObject



6
7
8
# File 'lib/kuby/cli_base.rb', line 6

def last_status
  Thread.current[status_key]
end