Sha256: f18ba94c1105c81836ac53f721f9333d3dc4dbb655d827ff151d9c8837b8bf82

Contents?: true

Size: 418 Bytes

Versions: 45

Compression:

Stored size: 418 Bytes

Contents

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

45 entries across 45 versions & 1 rubygems

Version Path
ruby_fly-0.23.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.22.0.pre.2 lib/ruby_fly/commands/version.rb
ruby_fly-0.22.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.21.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.20.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.19.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.18.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.17.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.16.0.pre.2 lib/ruby_fly/commands/version.rb
ruby_fly-0.16.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.15.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.14.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.13.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.12.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.11.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.10.0.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.9.0 lib/ruby_fly/commands/version.rb
ruby_fly-0.8.0.pre.pre.2 lib/ruby_fly/commands/version.rb
ruby_fly-0.8.0.pre.pre.1 lib/ruby_fly/commands/version.rb
ruby_fly-0.7.0 lib/ruby_fly/commands/version.rb