lib/pumper/pump.rb in pumper-1.0.1 vs lib/pumper/pump.rb in pumper-1.2.0

- old
+ new

@@ -3,17 +3,17 @@ def initialize(options) @options = options end def perform - project = UpdatingProject.new(options[:project], options[:absolute_path]) - commands = Command::Repository.new(options) + project = Project.new(options) + commands = Command::Repository.new(project) commands.add(Command::GemRebuildCommand) commands.add(Command::GemUninstallCommand, { gem_name: specification.name }) - if options[:vendor] + if project.is_vendor commands.add(Command::GemInstallToVendorCommand, { project_path: project.path, gem_name: specification.name }) else commands.add( Command::GemInstallCommand, { @@ -31,9 +31,9 @@ private attr_reader :options def specification - @specification ||= Specification.new(options[:gemspec]) + @specification ||= Specification.new end end end \ No newline at end of file