Sha256: 48b9b705131a2dc341222b8fba4b0bc685bf1bb2c125f9e4f7df50da795be807

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

module CC
  module CLI
    class Version < Command
      SHORT_HELP = "Display the CLI version.".freeze

      def run
        say version
      end

      private

      def version
        path = File.expand_path("../../../../VERSION", __FILE__)
        @version ||= File.read(path)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
codeclimate-0.52.0 lib/cc/cli/version.rb
codeclimate-0.51.3 lib/cc/cli/version.rb
codeclimate-0.51.2 lib/cc/cli/version.rb
codeclimate-0.51.1 lib/cc/cli/version.rb
codeclimate-0.51.0 lib/cc/cli/version.rb
codeclimate-0.50.0 lib/cc/cli/version.rb
codeclimate-0.49.0 lib/cc/cli/version.rb
codeclimate-0.48.0 lib/cc/cli/version.rb
codeclimate-0.47.0 lib/cc/cli/version.rb
codeclimate-0.46.0 lib/cc/cli/version.rb