Sha256: 6b22090e6f1cb1d2edcc7f51f979278d6fb5d8ee8c2d330b5c5fd87fea800a55

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

require 'thor'

module BundledGem
  class Cli < Thor
    desc "list", "bundle list(without bundle install)"
    def list
      gemfilelock_content = File.read("./Gemfile.lock")
      lockfile = Bundler::LockfileParser.new(gemfilelock_content)
      lockfile.specs.each { |s| puts "#{s.name}, #{s.version}" }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bundled_gems-0.0.1 lib/bundled_gem/cli.rb