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