Module: Octokit::Warnable
- Included in:
- Client, EnterpriseAdminClient, EnterpriseManagementConsoleClient
- Defined in:
- lib/octokit/warnable.rb
Overview
Allows warnings to be suppressed via environment variable.
Instance Method Summary collapse
-
#octokit_warn(*message) ⇒ nil
Wrapper around Kernel#warn to print warnings unless OCTOKIT_SILENT is set to true.
Instance Method Details
#octokit_warn(*message) ⇒ nil
Wrapper around Kernel#warn to print warnings unless OCTOKIT_SILENT is set to true.
10 11 12 13 14 |
# File 'lib/octokit/warnable.rb', line 10 def octokit_warn(*) unless ENV['OCTOKIT_SILENT'] warn end end |