Class: Timber::CLI::Installers::Root
- Inherits:
-
Timber::CLI::Installer
- Object
- Timber::CLI::Installer
- Timber::CLI::Installers::Root
- Defined in:
- lib/timber/cli/installers/root.rb
Overview
The root installer is the primary installer that is instantiated and run when the installer starts. It is responsible for instantiating the proper sub installers that install Timber in specific frameworks and environments.
Instance Method Summary collapse
Instance Method Details
#run(app) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/timber/cli/installers/root.rb', line 26 def run(app) io.puts IO::Messages.application_details(app) io.puts "" case io.ask_yes_no("Are the above details correct?", event_prompt: "App details correct?") when :yes install_platform(app) run_sub_installer(app) confirm_log_delivery wrap_up(app) api.event(:success) collect_feedback free_data when :no io.puts "" io.puts "Bummer. Head to this URL to update the details:" io.puts "" io.puts " #{IO::Messages.edit_app_url(app)}", :blue io.puts "" io.puts "exiting..." end end |