Sha256: 1d0043063c5b286f84893a0e6ceaa72f4dcb30a1638232df8cbc0ee01da0a4ac
Contents?: true
Size: 964 Bytes
Versions: 9
Compression:
Stored size: 964 Bytes
Contents
# encoding: utf-8 require_relative './util/login' require_relative './util/info' require_relative './util/build' require_relative './util/publish' module FIR module Util def self.included base base.extend ClassMethods base.extend Login base.extend Info base.extend Build base.extend Publish end module ClassMethods def fetch_user_info token get api[:me_url], token: token end def check_supported_file path unless File.file?(path) || APP_FILE_TYPE.include?(File.extname(path)) logger.error "File does not exist or unsupported file type" exit 1 end end def check_token_cannot_be_blank token if token.blank? logger.error "Token can't be blank" exit 1 end end def logger_info_dividing_line logger.info "✈ -------------------------------------------- ✈" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems