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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth, gem_name, slug) ⇒ GemUnyanker
constructor
A new instance of GemUnyanker.
- #serve ⇒ Object
Constructor Details
#initialize(auth, gem_name, slug) ⇒ GemUnyanker
26 27 28 29 30 |
# File 'lib/gemstash/gem_unyanker.rb', line 26 def initialize(auth, gem_name, slug) @auth = auth @gem_name = gem_name @slug = slug end |
Class Method Details
.serve(app) ⇒ Object
20 21 22 23 24 |
# File 'lib/gemstash/gem_unyanker.rb', line 20 def self.serve(app) gem_name = app.params[:gem_name] slug = Gemstash::DB::Version.slug(app.params) new(app.auth, gem_name, slug).serve end |
Instance Method Details
#serve ⇒ Object
32 33 34 35 36 |
# File 'lib/gemstash/gem_unyanker.rb', line 32 def serve check_auth update_database invalidate_cache end |