Sha256: a50a7f905addba2ea1c6386837e8060af6615d39ca7bf8bf0fcbd5fda742a512
Contents?: true
Size: 960 Bytes
Versions: 1
Compression:
Stored size: 960 Bytes
Contents
require 'thor' require 'net/http' require 'awesome_print' require 'yaml' require 'oj' require 'faraday' require 'faraday_middleware' require 'yell' require 'wss_agent/version' require 'wss_agent/specifications' require 'wss_agent/configure' require 'wss_agent/cli' require 'wss_agent/response' require 'wss_agent/response_policies' require 'wss_agent/response_inventory' require 'wss_agent/client' require 'wss_agent/gem_sha1' require 'wss_agent/project' module WssAgent # Your code goes here... class WssAgentError < StandardError def self.status_code(code) define_method(:status_code) { code } end end class TokenNotFound < WssAgentError; status_code(10) ; end class ApiUrlNotFound < WssAgentError; status_code(11) ; end def self.logger @logger ||= Yell.new STDOUT, level: [:info] end def self.enable_debug! @logger ||= Yell.new STDOUT, level: [:debug, :info, :warn, :error, :fatal, :unknown] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wss_agent-0.0.15 | lib/wss_agent.rb |