Module: Nib

Defined in:
lib/nib.rb,
lib/nib/version.rb

Defined Under Namespace

Modules: Command, History, Options Classes: CheckForUpdate, CodeClimate, Console, Debug, Exec, Plugin, Plugins, Run, Setup, Shell, UnrecognizedHelp, Update

Constant Summary collapse

GEM_ROOT =
File.expand_path('..', __dir__)
VERSION =
File.read(File.expand_path('../../VERSION', __dir__)).freeze

Class Method Summary collapse

Class Method Details

.available_pluginsObject



38
39
40
# File 'lib/nib.rb', line 38

def available_plugins
  Nib::Plugins.available_plugins.map(&:binstub)
end

.installed_pluginsObject



34
35
36
# File 'lib/nib.rb', line 34

def installed_plugins
  Nib::Plugins.potential_plugins.map(&:name)
end

.load_default_config(command, file_name) ⇒ Object



42
43
44
# File 'lib/nib.rb', line 42

def load_default_config(command, file_name)
  File.read("#{GEM_ROOT}/config/commands/#{command}/#{file_name}")
end