Class: Everywhere::Commands::Install
- Inherits:
-
Dry::CLI::Command
- Object
- Dry::CLI::Command
- Everywhere::Commands::Install
- Defined in:
- lib/everywhere/commands/install.rb
Overview
Prepare an existing app for packaged desktop life. Idempotent: skips anything already in place.
Instance Method Summary collapse
Instance Method Details
#call(root: ".", local: false) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/everywhere/commands/install.rb', line 17 def call(root: ".", local: false, **) @mode = local ? "local" : "remote" @framework = Framework.detect(root) @root = @framework.root UI.step("#{UI.bold(@framework.name)} app at #{@root}") UI.warn("local mode: only SQLite databases are supported") if local # Common to every framework. add_gem write_config write_boot_stub # Framework-specific config surgery. send("install_#{@framework.name}") UI.success("installed — run `every dev` to open the app, `every build` to package it") end |