Module: Sym::Constants

Defined in:
lib/sym/constants.rb

Overview

This module is responsible for installing Sym BASH extensions.

Defined Under Namespace

Modules: Log

Constant Summary collapse

BASH_FILES =
Dir.glob("#{File.expand_path('../../bin', __dir__)}/sym.*.bash").freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.user_homeObject

Returns the value of attribute user_home.



11
12
13
# File 'lib/sym/constants.rb', line 11

def user_home
  @user_home
end

Class Method Details

.configObject



18
19
20
# File 'lib/sym/constants.rb', line 18

def config
  @config ||= {}
end

.register_bash_files!Object



26
27
28
29
30
# File 'lib/sym/constants.rb', line 26

def register_bash_files!
  BASH_FILES.each do |bash_file|
    register_bash_extension bash_file
  end
end

.sym_key_fileObject



22
23
24
# File 'lib/sym/constants.rb', line 22

def sym_key_file
  "#{user_home}/.sym.key"
end