Module: App

Defined in:
lib/ShellboxCLI.rb,
lib/ios/iosOption.rb

Defined Under Namespace

Classes: IOS_CLI, ShellboxCLI

Constant Summary collapse

GEM_NAME =
"shellboxCLI".freeze

Class Method Summary collapse

Class Method Details

.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