Sha256: 39008d8c36a7978e8b442f8efb6d9e0ac124347fd735c96c8838616f2946499d

Contents?: true

Size: 975 Bytes

Versions: 6

Compression:

Stored size: 975 Bytes

Contents

module Marty::Diagnostic; class Version < Base
  diagnostic_fn do
    begin
      message = `cd #{Rails.root}; git describe --tags --always;`.strip
    rescue StandardError
      message = error('Failed accessing git')
    end
    rbv = "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})"
    {
      'Marty'                   => Marty::VERSION,
      'Delorean'                => Delorean::VERSION,
      'Mcfly'                   => Mcfly::VERSION,
      'Git'                     => message,
      'Rails'                   => Rails.version,
      'Netzke Core'             => Netzke::Core::VERSION,
      'Netzke Basepack'         => Netzke::Basepack::VERSION,
      'Ruby'                    => rbv,
      'RubyGems'                => Gem::VERSION,
      'Database Schema Version' => db_schema,
      'Environment'             => Rails.env,
    }
  end

  def self.db_schema
      Database.db_schema
  rescue StandardError => e
      error(e.message)
  end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
marty-8.0.0 lib/marty/diagnostic/version.rb
marty-6.1.0 lib/marty/diagnostic/version.rb
marty-5.2.0 other/marty/diagnostic/version.rb
marty-5.1.4 other/marty/diagnostic/version.rb
marty-5.1.3 other/marty/diagnostic/version.rb
marty-5.1.2 other/marty/diagnostic/version.rb