Sha256: b61645d4dfa9d24719a10dff0da217a20ea3b7adcda159ae5767662ff303ee81

Contents?: true

Size: 298 Bytes

Versions: 124

Compression:

Stored size: 298 Bytes

Contents

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

      def run
        say version
      end

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

Version data entries

124 entries across 124 versions & 2 rubygems

Version Path
codeclimate-0.96.0 lib/cc/cli/version.rb
codeclimate-0.95.0 lib/cc/cli/version.rb
codeclimate-0.94.1 lib/cc/cli/version.rb
codeclimate-0.94.0 lib/cc/cli/version.rb
codeclimate-0.93.0 lib/cc/cli/version.rb
codeclimate-0.92.1 lib/cc/cli/version.rb
codeclimate-0.92.0 lib/cc/cli/version.rb
codeclimate-0.91.0 lib/cc/cli/version.rb
codeclimate-0.90.0 lib/cc/cli/version.rb
codeclimate-0.89.0 lib/cc/cli/version.rb
codeclimate-0.88.0 lib/cc/cli/version.rb
codeclimate-0.87.5 lib/cc/cli/version.rb
codeclimate-0.87.4 lib/cc/cli/version.rb
codeclimate-0.87.3 lib/cc/cli/version.rb
codeclimate-0.87.2 lib/cc/cli/version.rb
codeclimate-0.87.1 lib/cc/cli/version.rb
codeclimate-0.87.0 lib/cc/cli/version.rb
codeclimate-0.86.0 lib/cc/cli/version.rb
codeclimate-0.85.29 lib/cc/cli/version.rb
codeclimate-0.85.28 lib/cc/cli/version.rb