Class: Thor
- Inherits:
-
Object
show all
- Defined in:
- lib/thor_enhance/thor_auto_generate_inject.rb
Instance Method Summary
collapse
Instance Method Details
#thor_enhance_autogenerate ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'lib/thor_enhance/thor_auto_generate_inject.rb', line 20
def thor_enhance_autogenerate
require "thor_enhance/autogenerate"
basename = options.basename || ThorEnhance.basename || File.basename($0)
result = ThorEnhance::Autogenerate.execute!(options: options, root: self.class, basename: basename)
if result[:status] == :pass
__auto_generate_success!(result[:saved_status])
else
__auto_generate_fail!(result[:msg_array])
end
end
|