Sha256: afe2643ba840c93542e046f4a274ab9124efc8725171732d20a81e191ba1a655
Contents?: true
Size: 743 Bytes
Versions: 8
Compression:
Stored size: 743 Bytes
Contents
require 'logger' module Sym module Constants module Bash Config = {} BASH_FILES = Dir.glob("#{File.expand_path('../../../bin', __FILE__)}/sym.*").freeze BASH_FILES.each do |bash_file| source_file = File.basename(bash_file) home_file = "#{ENV['HOME']}/.#{source_file}" Config[source_file.gsub(/sym\./, '').to_sym] = { dest: home_file, source: bash_file, script: "[[ -f #{home_file} ]] && source #{home_file}" } end end module Log NIL = Logger.new(nil).freeze # empty logger LOG = Logger.new(STDERR).freeze end ENV_ARGS_VARIABLE_NAME = 'SYM_ARGS'.freeze SYM_KEY_FILE = "#{ENV['HOME']}/.sym.key" end end
Version data entries
8 entries across 8 versions & 1 rubygems