Class: GGem::CLI::InstallCommand
- Inherits:
-
Object
- Object
- GGem::CLI::InstallCommand
- Includes:
- GemspecCommand
- Defined in:
- lib/ggem/cli/commands.rb
Instance Method Summary collapse
- #help ⇒ Object
-
#initialize(*args) ⇒ InstallCommand
constructor
A new instance of InstallCommand.
- #run(argv, *args) ⇒ Object
- #summary ⇒ Object
Constructor Details
#initialize(*args) ⇒ InstallCommand
Returns a new instance of InstallCommand.
221 222 223 224 |
# File 'lib/ggem/cli/commands.rb', line 221 def initialize(*args) super @build_command = BuildCommand.new(*args) end |
Instance Method Details
#help ⇒ Object
239 240 241 242 243 244 |
# File 'lib/ggem/cli/commands.rb', line 239 def help "Usage: ggem install [options]\n\n" \ "Options: #{@clirb}\n" \ "Description:\n" \ " #{self.summary}" end |
#run(argv, *args) ⇒ Object
226 227 228 229 230 231 232 233 |
# File 'lib/ggem/cli/commands.rb', line 226 def run(argv, *args) super @build_command.run([]) notify("#{@spec.name} #{@spec.version} installed to system gems") do @spec.run_install_cmd end end |
#summary ⇒ Object
235 236 237 |
# File 'lib/ggem/cli/commands.rb', line 235 def summary "Build and install #{@spec.gem_file_name} into system gems" end |