Class: Kaze::Commands::App
- Inherits:
-
Thor
- Object
- Thor
- Kaze::Commands::App
show all
- Defined in:
- lib/kaze/commands/app.rb
Defined Under Namespace
Classes: BaseStack, HotwireStack, InertiaReactStack, InertiaVueStack, StackFactory
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
6
|
# File 'lib/kaze/commands/app.rb', line 6
def self.exit_on_failure?() true end
|
Instance Method Details
#install(stack = 'hotwire') ⇒ Object
9
10
11
12
13
14
15
|
# File 'lib/kaze/commands/app.rb', line 9
def install(stack = 'hotwire')
return say 'Kaze must be run in a new Rails application.', :red unless File.exist?("#{Dir.pwd}/bin/rails")
StackFactory.make(stack.to_sym).install
rescue => e
say e.message, :red
end
|
#version ⇒ Object
18
19
20
|
# File 'lib/kaze/commands/app.rb', line 18
def version
puts Kaze::VERSION
end
|