Class: RailsVue3Quasar::HandleAddLib

Inherits:
BaseHandle show all
Defined in:
lib/rails_vue3_quasar/handle_add_lib.rb

Overview

class add library BaseHandle

Instance Attribute Summary collapse

Instance Method Summary collapse

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_phaserObject (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

#processObject



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