Module: Rooibos::CLI::Commands::Run
- Defined in:
- lib/rooibos/cli/commands/run.rb
Overview
Runs the Rooibos application in the current directory.
Developers switch between editor and terminal constantly. Typing bundle exec exe/my_app every time is tedious and error-prone.
This command finds the executable in exe/ and runs it via bundler. It walks up the directory tree to find the project root, then executes the first executable it finds.
Use it from any directory within your project.
Example
rooibos run
Class Method Summary collapse
-
.call(argv) ⇒ Object
Runs the run command.
Class Method Details
.call(argv) ⇒ Object
Runs the run command.
- argv
-
Command-line arguments.
32 33 34 35 36 37 38 39 |
# File 'lib/rooibos/cli/commands/run.rb', line 32 def self.call(argv) if ["--help", "-h"].include?(argv.first) puts usage exit(0) end run_app end |