Sha256: 5163e2ba62038c351532ca8dde465760b18d4c8d67b0cbd3d49570aedcf593a0

Contents?: true

Size: 258 Bytes

Versions: 57

Compression:

Stored size: 258 Bytes

Contents

module CC
  module CLI
    class Version < Command
      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

57 entries across 57 versions & 1 rubygems

Version Path
codeclimate-0.9.7 lib/cc/cli/version.rb
codeclimate-0.9.6 lib/cc/cli/version.rb
codeclimate-0.9.5 lib/cc/cli/version.rb
codeclimate-0.9.4 lib/cc/cli/version.rb
codeclimate-0.9.3 lib/cc/cli/version.rb
codeclimate-0.9.2 lib/cc/cli/version.rb
codeclimate-0.9.1 lib/cc/cli/version.rb
codeclimate-0.9.0 lib/cc/cli/version.rb
codeclimate-0.8.1 lib/cc/cli/version.rb
codeclimate-0.8.0 lib/cc/cli/version.rb
codeclimate-0.7.2 lib/cc/cli/version.rb
codeclimate-0.7.0 lib/cc/cli/version.rb
codeclimate-0.6.4 lib/cc/cli/version.rb
codeclimate-0.6.3 lib/cc/cli/version.rb
codeclimate-0.6.2 lib/cc/cli/version.rb
codeclimate-0.6.1 lib/cc/cli/version.rb
codeclimate-0.6.0 lib/cc/cli/version.rb
codeclimate-0.5.0 lib/cc/cli/version.rb
codeclimate-0.4.4 lib/cc/cli/version.rb
codeclimate-0.4.3 lib/cc/cli/version.rb