Class: Gemstash::GemUnyanker
- Inherits:
-
Object
- Object
- Gemstash::GemUnyanker
- Includes:
- Env::Helper
- Defined in:
- lib/gemstash/gem_unyanker.rb
Overview
Class that supports unyanking a gem from the private repository of gems.
Defined Under Namespace
Classes: NotYankedVersionError, UnknownGemError, UnknownVersionError
Instance Method Summary collapse
-
#initialize(auth_key, gem_name, slug) ⇒ GemUnyanker
constructor
A new instance of GemUnyanker.
- #unyank ⇒ Object
Constructor Details
#initialize(auth_key, gem_name, slug) ⇒ GemUnyanker
Returns a new instance of GemUnyanker.
20 21 22 23 24 |
# File 'lib/gemstash/gem_unyanker.rb', line 20 def initialize(auth_key, gem_name, slug) @auth_key = auth_key @gem_name = gem_name @slug = slug end |
Instance Method Details
#unyank ⇒ Object
26 27 28 29 30 |
# File 'lib/gemstash/gem_unyanker.rb', line 26 def unyank check_auth update_database invalidate_cache end |