Sha256: b1bd020f48bbb23b7d04d640ed7200b89d43571a7c970bd19621a4136b01a416

Contents?: true

Size: 572 Bytes

Versions: 7

Compression:

Stored size: 572 Bytes

Contents

# frozen_string_literal: true

require 'lino'

require_relative 'base'
require_relative 'mixins/environment'

module RubyLeiningen
  module Commands
    class Version < Base
      include Mixins::Environment

      def stdout
        @version_string
      end

      def do_before(_opts)
        @version_string = StringIO.new
      end

      def configure_command(builder, opts)
        builder = super(builder, opts)
        builder.with_argument('version')
      end

      def do_after(_opts)
        @version_string.string.gsub(/\n/, '')
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruby_leiningen-0.28.0.pre.1 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.27.0 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.26.0.pre.2 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.26.0.pre.1 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.25.0 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.8 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.7 lib/ruby_leiningen/commands/version.rb