Class: Gemstash::GemYanker

Inherits:
Object
  • Object
show all
Includes:
Env::Helper
Defined in:
lib/gemstash/gem_yanker.rb

Overview

Class that supports yanking a gem from the private repository of gems.

Defined Under Namespace

Classes: UnknownGemError, UnknownVersionError, YankedVersionError

Instance Method Summary collapse

Constructor Details

#initialize(auth_key, gem_name, slug) ⇒ GemYanker

Returns a new instance of GemYanker.



20
21
22
23
24
# File 'lib/gemstash/gem_yanker.rb', line 20

def initialize(auth_key, gem_name, slug)
  @auth_key = auth_key
  @gem_name = gem_name
  @slug = slug
end

Instance Method Details

#yankObject



26
27
28
29
30
# File 'lib/gemstash/gem_yanker.rb', line 26

def yank
  check_auth
  update_database
  invalidate_cache
end