Sha256: 4c51d5d1a3b83f8ba1f53de8df42271773cd09edcfcc2d946904362124420a9f
Contents?: true
Size: 969 Bytes
Versions: 3
Compression:
Stored size: 969 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[:user_url], api_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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fir-cli-1.1.2 | lib/fir/util.rb |
fir-cli-1.1.1 | lib/fir/util.rb |
fir-cli-1.1.0 | lib/fir/util.rb |