Class: App::Opt

Inherits:
Object
  • Object
show all
Defined in:
lib/core/opt.rb

Constant Summary collapse

OPT_PATH =
'/opt'

Class Method Summary collapse

Class Method Details

.get_base_pathObject

Get PATH to opt files.

Returns:

  • String



9
10
11
12
13
# File 'lib/core/opt.rb', line 9

def self.get_base_path
    base_path = File.dirname(File.expand_path(__FILE__))
    base_path = base_path.gsub(/\/\w+\/\w+\z/i, '')
    base_path
end