Sha256: 18ea87c5ff58adf355107e95c784f81b23cce2517b5ddaa7540e7b0e057b6d14

Contents?: true

Size: 472 Bytes

Versions: 6

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

require "shellwords"

module BundleUpdateInteractive
  module BundlerCommands
    class << self
      def update_gems_conservatively(*gems)
        system "bundle update --conservative #{gems.flatten.map(&:shellescape).join(' ')}"
      end

      def read_updated_lockfile
        `bundle lock --print --update`.tap do
          raise "bundle lock command failed" unless Process.last_status.success?
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bundle_update_interactive-0.3.0 lib/bundle_update_interactive/bundler_commands.rb
bundle_update_interactive-0.2.1 lib/bundle_update_interactive/bundler_commands.rb
bundle_update_interactive-0.2.0 lib/bundle_update_interactive/bundler_commands.rb
bundle_update_interactive-0.1.2 lib/bundle_update_interactive/bundler_commands.rb
bundle_update_interactive-0.1.1 lib/bundle_update_interactive/bundler_commands.rb
bundle_update_interactive-0.1.0 lib/bundle_update_interactive/bundler_commands.rb