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
-
.gem_path ⇒ String
The path to the local gem directory.
Class Method Details
.gem_path ⇒ String
Returns 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 |