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-fede-0.85.38 lib/cc/cli/version.rb
codeclimate-fede-0.85.37 lib/cc/cli/version.rb
codeclimate-fede-0.85.36 lib/cc/cli/version.rb
codeclimate-fede-0.85.35 lib/cc/cli/version.rb
codeclimate-fede-0.85.33 lib/cc/cli/version.rb
codeclimate-fede-0.85.32 lib/cc/cli/version.rb
codeclimate-fede-0.85.31 lib/cc/cli/version.rb
codeclimate-fede-0.85.30 lib/cc/cli/version.rb
codeclimate-fede-0.85.21 lib/cc/cli/version.rb
codeclimate-fede-0.85.24 lib/cc/cli/version.rb
codeclimate-fede-0.85.23 lib/cc/cli/version.rb
codeclimate-0.85.23 lib/cc/cli/version.rb
codeclimate-0.85.22 lib/cc/cli/version.rb
codeclimate-0.85.21 lib/cc/cli/version.rb
codeclimate-0.85.19 lib/cc/cli/version.rb
codeclimate-0.85.18 lib/cc/cli/version.rb
codeclimate-0.85.17 lib/cc/cli/version.rb
codeclimate-0.85.15 lib/cc/cli/version.rb
codeclimate-0.85.14 lib/cc/cli/version.rb
codeclimate-0.85.13 lib/cc/cli/version.rb