Module: Bits::CommandProvider

Defined in:
lib/bits/command_provider.rb

Overview

Helper functions for writing providers which mainly interacts with external commands.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



35
36
37
# File 'lib/bits/command_provider.rb', line 35

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#check_command(*args) ⇒ Object



27
28
29
# File 'lib/bits/command_provider.rb', line 27

def check_command(*args)
  self.class.check_command(*args)
end

#run(*args) ⇒ Object



31
32
33
# File 'lib/bits/command_provider.rb', line 31

def run(*args)
  self.class.run(*args)
end