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



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

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

.installed_pluginsObject



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

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

.load_default_config(command, file_name) ⇒ Object



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

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