Class: RailsInstaller::Command::Install
- Inherits:
-
RailsInstaller::Command
- Object
- RailsInstaller::Command
- RailsInstaller::Command::Install
- Defined in:
- lib/rails-installer/commands.rb
Overview
The install
command installs the application into a specific path. Optionally, the user can request a specific version to install. If the version string is ‘cwd’, then the current directory is used as a template; otherwise it looks for the specified version number in the local Gems repository.
Class Method Summary collapse
Methods inherited from RailsInstaller::Command
commands, flag_help, flag_help_text, help, help_text, inherited
Class Method Details
.command(installer, *args) ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/rails-installer/commands.rb', line 85 def self.command(installer, *args) version = nil args.each do |arg| if(arg =~ /^([^=]+)=(.*)$/) installer.config[$1.to_s] = $2.to_s else version = arg end end installer.install(version) end |