GRAYBYTE WORDPRESS FILE MANAGER6816

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby26/lib64/ruby/2.6.0/bundler/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby26/lib64/ruby/2.6.0/bundler//env.rb
# frozen_string_literal: true

require "bundler/rubygems_integration"
require "bundler/source/git/git_proxy"

module Bundler
  class Env
    def self.write(io)
      io.write report
    end

    def self.report(options = {})
      print_gemfile = options.delete(:print_gemfile) { true }
      print_gemspecs = options.delete(:print_gemspecs) { true }

      out = String.new
      append_formatted_table("Environment", environment, out)
      append_formatted_table("Bundler Build Metadata", BuildMetadata.to_h, out)

      unless Bundler.settings.all.empty?
        out << "\n## Bundler settings\n\n```\n"
        Bundler.settings.all.each do |setting|
          out << setting << "\n"
          Bundler.settings.pretty_values_for(setting).each do |line|
            out << "  " << line << "\n"
          end
        end
        out << "```\n"
      end

      return out unless SharedHelpers.in_bundle?

      if print_gemfile
        gemfiles = [Bundler.default_gemfile]
        begin
          gemfiles = Bundler.definition.gemfiles
        rescue GemfileNotFound
          nil
        end

        out << "\n## Gemfile\n"
        gemfiles.each do |gemfile|
          out << "\n### #{Pathname.new(gemfile).relative_path_from(SharedHelpers.pwd)}\n\n"
          out << "```ruby\n" << read_file(gemfile).chomp << "\n```\n"
        end

        out << "\n### #{Bundler.default_lockfile.relative_path_from(SharedHelpers.pwd)}\n\n"
        out << "```\n" << read_file(Bundler.default_lockfile).chomp << "\n```\n"
      end

      if print_gemspecs
        dsl = Dsl.new.tap {|d| d.eval_gemfile(Bundler.default_gemfile) }
        out << "\n## Gemspecs\n" unless dsl.gemspecs.empty?
        dsl.gemspecs.each do |gs|
          out << "\n### #{File.basename(gs.loaded_from)}"
          out << "\n\n```ruby\n" << read_file(gs.loaded_from).chomp << "\n```\n"
        end
      end

      out
    end

    def self.read_file(filename)
      Bundler.read_file(filename.to_s).strip
    rescue Errno::ENOENT
      "<No #{filename} found>"
    rescue RuntimeError => e
      "#{e.class}: #{e.message}"
    end

    def self.ruby_version
      str = String.new("#{RUBY_VERSION}")
      if RUBY_VERSION < "1.9"
        str << " (#{RUBY_RELEASE_DATE}"
        str << " patchlevel #{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
        str << ") [#{RUBY_PLATFORM}]"
      else
        str << "p#{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
        str << " (#{RUBY_RELEASE_DATE} revision #{RUBY_REVISION}) [#{RUBY_PLATFORM}]"
      end
    end

    def self.git_version
      Bundler::Source::Git::GitProxy.new(nil, nil, nil).full_version
    rescue Bundler::Source::Git::GitNotInstalledError
      "not installed"
    end

    def self.version_of(script)
      return "not installed" unless Bundler.which(script)
      `#{script} --version`.chomp
    end

    def self.chruby_version
      return "not installed" unless Bundler.which("chruby-exec")
      `chruby-exec -- chruby --version`.
        sub(/.*^chruby: (#{Gem::Version::VERSION_PATTERN}).*/m, '\1')
    end

    def self.environment
      out = []

      out << ["Bundler", Bundler::VERSION]
      out << ["  Platforms", Gem.platforms.join(", ")]
      out << ["Ruby", ruby_version]
      out << ["  Full Path", Gem.ruby]
      out << ["  Config Dir", Pathname.new(Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE).dirname]
      out << ["RubyGems", Gem::VERSION]
      out << ["  Gem Home", ENV.fetch("GEM_HOME") { Gem.dir }]
      out << ["  Gem Path", ENV.fetch("GEM_PATH") { Gem.path.join(File::PATH_SEPARATOR) }]
      out << ["  User Path", Gem.user_dir]
      out << ["  Bin Dir", Gem.bindir]
      if defined?(OpenSSL)
        out << ["OpenSSL"]
        out << ["  Compiled", OpenSSL::OPENSSL_VERSION] if defined?(OpenSSL::OPENSSL_VERSION)
        out << ["  Loaded", OpenSSL::OPENSSL_LIBRARY_VERSION] if defined?(OpenSSL::OPENSSL_LIBRARY_VERSION)
        out << ["  Cert File", OpenSSL::X509::DEFAULT_CERT_FILE] if defined?(OpenSSL::X509::DEFAULT_CERT_FILE)
        out << ["  Cert Dir", OpenSSL::X509::DEFAULT_CERT_DIR] if defined?(OpenSSL::X509::DEFAULT_CERT_DIR)
      end
      out << ["Tools"]
      out << ["  Git", git_version]
      out << ["  RVM", ENV.fetch("rvm_version") { version_of("rvm") }]
      out << ["  rbenv", version_of("rbenv")]
      out << ["  chruby", chruby_version]

      %w[rubygems-bundler open_gem].each do |name|
        specs = Bundler.rubygems.find_name(name)
        out << ["  #{name}", "(#{specs.map(&:version).join(",")})"] unless specs.empty?
      end
      if (exe = caller.last.split(":").first) && exe =~ %r{(exe|bin)/bundler?\z}
        shebang = File.read(exe).lines.first
        shebang.sub!(/^#!\s*/, "")
        unless shebang.start_with?(Gem.ruby, "/usr/bin/env ruby")
          out << ["Gem.ruby", Gem.ruby]
          out << ["bundle #!", shebang]
        end
      end

      out
    end

    def self.append_formatted_table(title, pairs, out)
      return if pairs.empty?
      out << "\n" unless out.empty?
      out << "## #{title}\n\n```\n"
      ljust = pairs.map {|k, _v| k.to_s.length }.max
      pairs.each do |k, v|
        out << "#{k.to_s.ljust(ljust)}  #{v}\n"
      end
      out << "```\n"
    end

    private_class_method :read_file, :ruby_version, :git_version, :append_formatted_table, :version_of, :chruby_version
  end
end

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:47:39
root / root
0755
cli
--
March 03 2024 22:47:32
root / linksafe
0755
compact_index_client
--
March 03 2024 22:47:32
root / linksafe
0755
fetcher
--
March 03 2024 22:47:32
root / linksafe
0755
installer
--
March 03 2024 22:47:32
root / linksafe
0755
plugin
--
March 03 2024 22:47:32
root / linksafe
0755
resolver
--
March 03 2024 22:47:32
root / linksafe
0755
settings
--
March 03 2024 22:47:32
root / linksafe
0755
source
--
March 03 2024 22:47:32
root / linksafe
0755
ssl_certs
--
March 03 2024 22:47:32
root / linksafe
0755
templates
--
March 03 2024 22:47:32
root / linksafe
0755
ui
--
March 03 2024 22:47:32
root / linksafe
0755
vendor
--
March 03 2024 22:47:32
root / linksafe
0755
build_metadata.rb
1.614 KB
April 12 2022 11:50:11
root / linksafe
0644
capistrano.rb
0.858 KB
April 12 2022 11:50:11
root / linksafe
0644
cli.rb
35.123 KB
April 12 2022 11:50:11
root / linksafe
0644
compact_index_client.rb
3.271 KB
April 12 2022 11:50:11
root / linksafe
0644
compatibility_guard.rb
0.506 KB
April 12 2022 11:50:11
root / linksafe
0644
constants.rb
0.207 KB
April 12 2022 11:50:11
root / linksafe
0644
current_ruby.rb
2.187 KB
April 12 2022 11:50:11
root / linksafe
0644
definition.rb
36.444 KB
April 12 2022 11:50:11
root / linksafe
0644
dep_proxy.rb
0.808 KB
April 12 2022 11:50:11
root / linksafe
0644
dependency.rb
4.434 KB
April 12 2022 11:50:11
root / linksafe
0644
deployment.rb
3.191 KB
April 12 2022 11:50:11
root / linksafe
0644
deprecate.rb
0.855 KB
April 12 2022 11:50:11
root / linksafe
0644
dsl.rb
21.46 KB
April 12 2022 11:50:11
root / linksafe
0644
endpoint_specification.rb
3.908 KB
April 12 2022 11:50:11
root / linksafe
0644
env.rb
5.221 KB
April 12 2022 11:50:11
root / linksafe
0644
environment_preserver.rb
1.306 KB
April 12 2022 11:50:11
root / linksafe
0644
errors.rb
4.59 KB
April 12 2022 11:50:11
root / linksafe
0644
feature_flag.rb
3.066 KB
April 12 2022 11:50:11
root / linksafe
0644
fetcher.rb
10.831 KB
April 12 2022 11:50:11
root / linksafe
0644
friendly_errors.rb
4.33 KB
April 12 2022 11:50:11
root / linksafe
0644
gem_helper.rb
5.876 KB
April 12 2022 11:50:11
root / linksafe
0644
gem_helpers.rb
3.186 KB
April 12 2022 11:50:11
root / linksafe
0644
gem_remote_fetcher.rb
1.459 KB
April 12 2022 11:50:11
root / linksafe
0644
gem_tasks.rb
0.134 KB
April 12 2022 11:50:11
root / linksafe
0644
gem_version_promoter.rb
6.523 KB
April 12 2022 11:50:11
root / linksafe
0644
gemdeps.rb
0.413 KB
April 12 2022 11:50:11
root / linksafe
0644
graph.rb
4.999 KB
April 12 2022 11:50:11
root / linksafe
0644
index.rb
5.242 KB
April 12 2022 11:50:11
root / linksafe
0644
injector.rb
8.612 KB
April 12 2022 11:50:11
root / linksafe
0644
inline.rb
2.33 KB
April 12 2022 11:50:11
root / linksafe
0644
installer.rb
11.846 KB
April 12 2022 11:50:11
root / linksafe
0644
lazy_specification.rb
3.615 KB
April 12 2022 11:50:11
root / linksafe
0644
lockfile_generator.rb
2.179 KB
April 12 2022 11:50:11
root / linksafe
0644
lockfile_parser.rb
8.622 KB
April 12 2022 11:50:11
root / linksafe
0644
match_platform.rb
0.644 KB
April 12 2022 11:50:11
root / linksafe
0644
mirror.rb
5.79 KB
April 12 2022 11:50:11
root / linksafe
0644
plugin.rb
9.121 KB
April 12 2022 11:50:11
root / linksafe
0644
process_lock.rb
0.686 KB
April 12 2022 11:50:11
root / linksafe
0644
psyched_yaml.rb
0.833 KB
April 12 2022 11:50:11
root / linksafe
0644
remote_specification.rb
3.457 KB
April 12 2022 11:50:11
root / linksafe
0644
resolver.rb
14.196 KB
April 12 2022 11:50:11
root / linksafe
0644
retry.rb
1.603 KB
April 12 2022 11:50:11
root / linksafe
0644
ruby_dsl.rb
0.743 KB
April 12 2022 11:50:11
root / linksafe
0644
ruby_version.rb
4.963 KB
April 12 2022 11:50:11
root / linksafe
0644
rubygems_ext.rb
5.878 KB
April 12 2022 11:50:11
root / linksafe
0644
rubygems_gem_installer.rb
3.486 KB
April 12 2022 11:50:11
root / linksafe
0644
rubygems_integration.rb
25.008 KB
April 12 2022 11:50:11
root / linksafe
0644
runtime.rb
10.951 KB
April 12 2022 11:50:11
root / linksafe
0644
settings.rb
12.382 KB
April 12 2022 11:50:11
root / linksafe
0644
setup.rb
0.703 KB
April 12 2022 11:50:11
root / linksafe
0644
shared_helpers.rb
12.002 KB
April 12 2022 11:50:11
root / linksafe
0644
similarity_detector.rb
1.836 KB
April 12 2022 11:50:11
root / linksafe
0644
source.rb
2.655 KB
April 12 2022 11:50:11
root / linksafe
0644
source_list.rb
5.868 KB
April 12 2022 11:50:11
root / linksafe
0644
spec_set.rb
5.344 KB
April 12 2022 11:50:11
root / linksafe
0644
stub_specification.rb
2.777 KB
April 12 2022 11:50:11
root / linksafe
0644
ui.rb
0.193 KB
April 12 2022 11:50:11
root / linksafe
0644
uri_credentials_filter.rb
1.204 KB
April 12 2022 11:50:11
root / linksafe
0644
vendored_fileutils.rb
0.188 KB
April 12 2022 11:50:11
root / linksafe
0644
vendored_molinillo.rb
0.098 KB
April 12 2022 11:50:11
root / linksafe
0644
vendored_persistent.rb
1.61 KB
April 12 2022 11:50:11
root / linksafe
0644
vendored_thor.rb
0.188 KB
April 12 2022 11:50:11
root / linksafe
0644
version.rb
0.802 KB
April 12 2022 11:50:11
root / linksafe
0644
version_ranges.rb
2.864 KB
April 12 2022 11:50:11
root / linksafe
0644
vlad.rb
0.455 KB
April 12 2022 11:50:11
root / linksafe
0644
worker.rb
2.568 KB
April 12 2022 11:50:11
root / linksafe
0644
yaml_serializer.rb
2.406 KB
April 12 2022 11:50:11
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF