Method: App.gem_path

Defined in:
lib/ShellboxCLI.rb

.gem_pathString

Returns The path to the local gem directory.

Returns:

  • (String)

    The path to the local gem directory



10
11
12
13
14
15
# File 'lib/ShellboxCLI.rb', line 10

def self.gem_path
  if Gem::Specification.find_all_by_name(GEM_NAME).empty?
    raise "Couldn't find gem directory for '#{GEM_NAME}'"
  end
  return Gem::Specification.find_by_name(GEM_NAME).gem_dir
end