Method: LibGems::Commands::InstallCommand#initialize

Defined in:
lib/libgems/commands/install_command.rb

#initializeInstallCommand

Returns a new instance of InstallCommand.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/libgems/commands/install_command.rb', line 20

def initialize
  defaults = LibGems::DependencyInstaller::DEFAULT_OPTIONS.merge({
    :generate_rdoc     => true,
    :generate_ri       => true,
    :format_executable => false,
    :test              => false,
    :version           => LibGems::Requirement.default,
  })

  super 'install', 'Install a gem into the local repository', defaults

  add_install_update_options
  add_local_remote_options
  add_platform_option
  add_version_option
  add_prerelease_option "to be installed. (Only for listed gems)"
end