Class: Rexer::Cli
- Inherits:
-
Thor
- Object
- Thor
- Rexer::Cli
- Defined in:
- lib/rexer/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #edit ⇒ Object
- #envs ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ Cli
constructor
A new instance of Cli.
- #install(env = "default") ⇒ Object
- #reinstall(extension_name) ⇒ Object
- #state ⇒ Object
- #switch(env = "default") ⇒ Object
- #uninstall ⇒ Object
- #update(*extension_names) ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize ⇒ Cli
Returns a new instance of Cli.
65 66 67 68 69 |
# File 'lib/rexer/cli.rb', line 65 def initialize(*) super Dotenv.load end |
Class Method Details
.exit_on_failure? ⇒ Boolean
10 |
# File 'lib/rexer/cli.rb', line 10 def self.exit_on_failure? = true |
Instance Method Details
#install(env = "default") ⇒ Object
21 22 23 |
# File 'lib/rexer/cli.rb', line 21 def install(env = "default") Commands::Install.new.call(env&.to_sym) end |
#reinstall(extension_name) ⇒ Object
31 32 33 |
# File 'lib/rexer/cli.rb', line 31 def reinstall(extension_name) Commands::Reinstall.new.call(extension_name) end |
#switch(env = "default") ⇒ Object
36 37 38 |
# File 'lib/rexer/cli.rb', line 36 def switch(env = "default") Commands::Switch.new.call(env&.to_sym) end |
#uninstall ⇒ Object
26 27 28 |
# File 'lib/rexer/cli.rb', line 26 def uninstall Commands::Uninstall.new.call end |