Sha256: fe8029f8ed56ab301455994b31845711821d8f00839809e72f881d4ac30baef1

Contents?: true

Size: 539 Bytes

Versions: 14

Compression:

Stored size: 539 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
ruby_leiningen-0.24.0.pre.6 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.5 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.4 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.3 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.2 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.24.0.pre.1 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.23.0 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.22.0.pre.1 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.21.0 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.20.0.pre.1 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.19.0 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.18.0.pre.1 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.17.0 lib/ruby_leiningen/commands/version.rb
ruby_leiningen-0.16.0.pre.1 lib/ruby_leiningen/commands/version.rb