Class: RailsVue3Quasar::HandleAddLib
- Inherits:
-
BaseHandle
- Object
- BaseHandle
- RailsVue3Quasar::HandleAddLib
- Defined in:
- lib/rails_vue3_quasar/handle_add_lib.rb
Overview
class add library BaseHandle
Instance Attribute Summary collapse
-
#add_phaser ⇒ Object
readonly
Returns the value of attribute add_phaser.
Instance Method Summary collapse
-
#initialize(add_phaser) ⇒ HandleAddLib
constructor
A new instance of HandleAddLib.
- #process ⇒ Object
Methods inherited from BaseHandle
#install_yarn?, process, #project_root
Constructor Details
#initialize(add_phaser) ⇒ HandleAddLib
Returns a new instance of HandleAddLib.
16 17 18 |
# File 'lib/rails_vue3_quasar/handle_add_lib.rb', line 16 def initialize(add_phaser) @add_phaser = add_phaser end |
Instance Attribute Details
#add_phaser ⇒ Object (readonly)
Returns the value of attribute add_phaser.
14 15 16 |
# File 'lib/rails_vue3_quasar/handle_add_lib.rb', line 14 def add_phaser @add_phaser end |
Instance Method Details
#process ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rails_vue3_quasar/handle_add_lib.rb', line 20 def process add_file_package_json add_phaser_lib if add_phaser == '-g' HandleAddGem.process HandleAddSetting.process HandleRunDependency.run run_install_lib_by_yarn HandleChangeRoutes.process HandleAddSettingVue.process end |