Sha256: 2d11ce9d6979012f116dc32161ec98762757f5e4a816466c865700fda45b0a0d

Contents?: true

Size: 352 Bytes

Versions: 7

Compression:

Stored size: 352 Bytes

Contents

require 'reek'

module Reek
  module Cli

    #
    # A command to report the application's current version number.
    #
    class VersionCommand
      def initialize(progname)
        @progname = progname
      end
      def execute(view)
        view.output("#{@progname} #{Reek::VERSION}\n")
        view.report_success
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
reek-1.3.8 lib/reek/cli/version_command.rb
reek-1.3.7 lib/reek/cli/version_command.rb
reek-1.3.6 lib/reek/cli/version_command.rb
reek-1.3.5 lib/reek/cli/version_command.rb
reek-1.3.4 lib/reek/cli/version_command.rb
reek-1.3.3 lib/reek/cli/version_command.rb
reek-1.3.2 lib/reek/cli/version_command.rb