$91 GRAYBYTE WORDPRESS FILE MANAGER $33

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.36
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/ruby20/lib64/ruby/2.0.0/rubygems/commands/

HOME
Current File : /opt/alt/ruby20/lib64/ruby/2.0.0/rubygems/commands//help_command.rb
require 'rubygems/command'

class Gem::Commands::HelpCommand < Gem::Command

  # :stopdoc:
  EXAMPLES = <<-EOF
Some examples of 'gem' usage.

* Install 'rake', either from local directory or remote server:

    gem install rake

* Install 'rake', only from remote server:

    gem install rake --remote

* Install 'rake', but only version 0.3.1, even if dependencies
  are not met, and into a user-specific directory:

    gem install rake --version 0.3.1 --force --user-install

* List local gems whose name begins with 'D':

    gem list D

* List local and remote gems whose name contains 'log':

    gem search log --both

* List only remote gems whose name contains 'log':

    gem search log --remote

* Uninstall 'rake':

    gem uninstall rake

* Create a gem:

    See http://guides.rubygems.org/make-your-own-gem/

* See information about RubyGems:

    gem environment

* Update all gems on your system:

    gem update
  EOF

  PLATFORMS = <<-'EOF'
RubyGems platforms are composed of three parts, a CPU, an OS, and a
version.  These values are taken from values in rbconfig.rb.  You can view
your current platform by running `gem environment`.

RubyGems matches platforms as follows:

  * The CPU must match exactly, unless one of the platforms has
    "universal" as the CPU.
  * The OS must match exactly.
  * The versions must match exactly unless one of the versions is nil.

For commands that install, uninstall and list gems, you can override what
RubyGems thinks your platform is with the --platform option.  The platform
you pass must match "#{cpu}-#{os}" or "#{cpu}-#{os}-#{version}".  On mswin
platforms, the version is the compiler version, not the OS version.  (Ruby
compiled with VC6 uses "60" as the compiler version, VC8 uses "80".)

Example platforms:

  x86-freebsd        # Any FreeBSD version on an x86 CPU
  universal-darwin-8 # Darwin 8 only gems that run on any CPU
  x86-mswin32-80     # Windows gems compiled with VC8

When building platform gems, set the platform in the gem specification to
Gem::Platform::CURRENT.  This will correctly mark the gem with your ruby's
platform.
  EOF
  # :startdoc:

  def initialize
    super 'help', "Provide help on the 'gem' command"
  end

  def arguments # :nodoc:
    args = <<-EOF
      commands      List all 'gem' commands
      examples      Show examples of 'gem' usage
      <command>     Show specific help for <command>
    EOF
    return args.gsub(/^\s+/, '')
  end

  def usage # :nodoc:
    "#{program_name} ARGUMENT"
  end

  def execute
    command_manager = Gem::CommandManager.instance
    arg = options[:args][0]

    if begins? "commands", arg then
      out = []
      out << "GEM commands are:"
      out << nil

      margin_width = 4

      desc_width = command_manager.command_names.map { |n| n.size }.max + 4

      summary_width = 80 - margin_width - desc_width
      wrap_indent = ' ' * (margin_width + desc_width)
      format = "#{' ' * margin_width}%-#{desc_width}s%s"

      command_manager.command_names.each do |cmd_name|
        command = command_manager[cmd_name]

        summary =
          if command then
            command.summary
          else
            "[No command found for #{cmd_name}, bug?]"
          end

        summary = wrap(summary, summary_width).split "\n"
        out << sprintf(format, cmd_name, summary.shift)
        until summary.empty? do
          out << "#{wrap_indent}#{summary.shift}"
        end
      end

      out << nil
      out << "For help on a particular command, use 'gem help COMMAND'."
      out << nil
      out << "Commands may be abbreviated, so long as they are unambiguous."
      out << "e.g. 'gem i rake' is short for 'gem install rake'."

      say out.join("\n")

    elsif begins? "options", arg then
      say Gem::Command::HELP

    elsif begins? "examples", arg then
      say EXAMPLES

    elsif begins? "platforms", arg then
      say PLATFORMS

    elsif options[:help] then
      command = command_manager[options[:help]]
      if command
        # help with provided command
        command.invoke("--help")
      else
        alert_error "Unknown command #{options[:help]}.  Try 'gem help commands'"
      end

    elsif arg then
      possibilities = command_manager.find_command_possibilities(arg.downcase)
      if possibilities.size == 1
        command = command_manager[possibilities.first]
        command.invoke("--help")
      elsif possibilities.size > 1
        alert_warning "Ambiguous command #{arg} (#{possibilities.join(', ')})"
      else
        alert_warning "Unknown command #{arg}. Try gem help commands"
      end

    else
      say Gem::Command::HELP
    end
  end

end



Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.43 PM
root / linksafe
0755
build_command.rb
0.839 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
cert_command.rb
6.406 KB
21 Jun 2013 4.16 PM
root / linksafe
0644
check_command.rb
2.008 KB
23 Dec 2012 12.35 AM
root / linksafe
0644
cleanup_command.rb
3.851 KB
4 Jan 2013 10.58 PM
root / linksafe
0644
contents_command.rb
3.122 KB
30 Nov 2012 12.23 AM
root / linksafe
0644
dependency_command.rb
3.886 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
environment_command.rb
4.155 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
fetch_command.rb
1.489 KB
15 Sep 2013 2.23 PM
root / linksafe
0644
generate_index_command.rb
2.522 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
help_command.rb
4.558 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
install_command.rb
5.454 KB
6 Dec 2012 5.26 AM
root / linksafe
0644
list_command.rb
0.68 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
lock_command.rb
2.675 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
mirror_command.rb
0.386 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
outdated_command.rb
0.846 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
owner_command.rb
1.837 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
pristine_command.rb
3.655 KB
16 Aug 2013 3.35 PM
root / linksafe
0644
push_command.rb
2.024 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
query_command.rb
8.025 KB
25 Jul 2013 3.42 PM
root / linksafe
0644
rdoc_command.rb
2.313 KB
14 Dec 2012 5.09 AM
root / linksafe
0644
search_command.rb
0.602 KB
25 Jul 2013 3.42 PM
root / linksafe
0644
server_command.rb
2.354 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
setup_command.rb
12.943 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
sources_command.rb
3.624 KB
17 Mar 2013 2.18 PM
root / linksafe
0644
specification_command.rb
2.935 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
stale_command.rb
0.688 KB
27 Jul 2011 1.40 AM
root / linksafe
0644
uninstall_command.rb
3.072 KB
6 Dec 2012 5.26 AM
root / linksafe
0644
unpack_command.rb
4.061 KB
29 Nov 2012 6.52 AM
root / linksafe
0644
update_command.rb
5.799 KB
22 Jul 2013 4.33 PM
root / linksafe
0644
which_command.rb
1.866 KB
27 Jul 2011 1.40 AM
root / linksafe
0644
yank_command.rb
2.404 KB
29 Nov 2012 8.10 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF