Sha256: 5caa72b6292210093eccbf7ded15a9bce15a9c2d787d8ba900eba2b5a0ad3ac0

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

require 'lino'
require_relative 'base'

module RubyFly
  module Commands
    class Version < Base
      def stdout
        @version_string
      end

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

      def configure_command(builder, _opts)
        builder.with_flag('--version')
      end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_fly-0.40.0.pre.4 lib/ruby_fly/commands/version.rb
ruby_fly-0.40.0.pre.3 lib/ruby_fly/commands/version.rb
ruby_fly-0.40.0.pre.2 lib/ruby_fly/commands/version.rb