Sha256: 93e0123f13d13fe2ab282b8bb3a77b829ad694e14d0a36712e66960128e10832

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

require 'lino'
require_relative 'base'

module RubyFly
  module Commands
    class Version < Base
      private

      def invocation_option_defaults(_invocation_options)
        super.merge(capture: [:stdout])
      end

      def configure_command(initial_builder, _parameters)
        builder = super
        builder.with_flag('--version')
      end

      def process_result(result, _parameters, _invocation_options)
        output = result[:output]
        output.gsub("\n", '')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_fly-0.42.0.pre.2 lib/ruby_fly/commands/version.rb
ruby_fly-0.42.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.41.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.40.0.pre.6 lib/ruby_fly/commands/version.rb
ruby_fly-0.40.0.pre.5 lib/ruby_fly/commands/version.rb