Class: Gemstash::GemPusher
- Inherits:
-
Object
- Object
- Gemstash::GemPusher
- Includes:
- Env::Helper
- Defined in:
- lib/gemstash/gem_pusher.rb
Overview
Class that supports pushing a new gem to the private repository of gems.
Defined Under Namespace
Classes: ExistingVersionError, YankedVersionError
Instance Method Summary collapse
-
#initialize(auth_key, content) ⇒ GemPusher
constructor
A new instance of GemPusher.
- #push ⇒ Object
Constructor Details
#initialize(auth_key, content) ⇒ GemPusher
Returns a new instance of GemPusher.
19 20 21 22 |
# File 'lib/gemstash/gem_pusher.rb', line 19 def initialize(auth_key, content) @auth_key = auth_key @content = content end |
Instance Method Details
#push ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/gemstash/gem_pusher.rb', line 24 def push check_auth store_gem store_gemspec save_to_database invalidate_cache end |