Sha256: af894bb9b419b5168b1be1c69e403388d690b2faef1844c6f10a1f074d7bd600
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
module Pumper class Pump def initialize(options) @options = options end def perform project = Project.new(options) 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 private attr_reader :options def specification @specification ||= Specification.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pumper-1.3.0 | lib/pumper/pump.rb |
pumper-1.2.0 | lib/pumper/pump.rb |