Class: GDK::Command::Install
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- GDK::Command::Install
- Defined in:
- lib/gdk/command/install.rb
Overview
Handles ‘gdk install` command execution
This command accepts the following parameters:
-
gitlab_repo=<url to repository> (defaults to: “gitlab.com/gitlab-org/gitlab”)
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
#config, #display_help_message, #help, #initialize, #print_help, #print_ready_message, #ready_messages, validate_config?
Constructor Details
This class inherits a constructor from GDK::Command::BaseCommand
Instance Method Details
#run(args = []) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/gdk/command/install.rb', line 10 def run(args = []) args.each do |arg| next unless arg.start_with?('telemetry_user=') username = arg.split('=').last GDK::Telemetry.update_settings(username) break end result = GDK.make('install', *args) unless result.success? GDK::Output.error('Failed to install.', result.stderr_str) end Announcements.new.render_all if result.success? result.success? end |