Module: Spaceship::Slack2fa
- Defined in:
- lib/spaceship/slack2fa.rb,
lib/spaceship/slack2fa/version.rb,
lib/spaceship/slack2fa/monkey_patch.rb,
lib/spaceship/slack2fa/verification_code_not_found.rb
Overview
A module for applying a monkey patch to Spaceship::Client in the specific scope.
Defined Under Namespace
Classes: MonkeyPatch, VerificationCodeNotFound
Constant Summary collapse
- VERSION =
'0.4.1'
Class Method Summary collapse
-
.enable(**options) { ... } ⇒ Object
Applies monkey patch to Spaceship::Client so that it retrieves 6-digit code from Slack.
Class Method Details
.enable(**options) { ... } ⇒ Object
Applies monkey patch to Spaceship::Client so that it retrieves 6-digit code from Slack.
The monkey patch is only enabled in the given block scope.
64 65 66 67 68 69 70 71 72 |
# File 'lib/spaceship/slack2fa.rb', line 64 def self.enable(**) patch = MonkeyPatch.new(**) patch.enable begin yield ensure patch.disable end end |