Module: CVTool::OS

Defined in:
lib/cv_tool/os.rb

Class Method Summary collapse

Class Method Details

.get_tokenObject



5
6
7
8
9
10
11
12
13
# File 'lib/cv_tool/os.rb', line 5

def get_token()
  env = ENV[Constants::ENV_NAME]
  if env == nil
    Event.print('TOKEN', "| It needs to be inserted as a value because it does " +
      "not receive a token from the #{Constants::ENV_NAME} environment.")
    exit
  end
  return env
end