Class: Pumper::Pump
- Inherits:
-
Object
- Object
- Pumper::Pump
- Defined in:
- lib/pumper/pump.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Pump
constructor
A new instance of Pump.
- #perform ⇒ Object
Constructor Details
#initialize(options) ⇒ Pump
Returns a new instance of Pump.
3 4 5 |
# File 'lib/pumper/pump.rb', line 3 def initialize() @options = end |
Instance Method Details
#perform ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pumper/pump.rb', line 7 def perform project = Project.new() commands = Command::Repository.new(project) commands.add(Command::GemRebuildCommand) commands.add(Command::GemUninstallCommand, { gem_name: specification.name }) if project.is_vendor commands.add(Command::GemInstallToVendorCommand, { project_path: project.path, gem_name: specification.name }) else commands.add( Command::GemInstallCommand, { gem_name: specification.name, gem_file_name: specification.gem_file_name, project_path: project.path } ) end project.bump_version!(specification) commands.execute end |