Class: Ariadna::Installer
- Inherits:
-
Object
- Object
- Ariadna::Installer
- Defined in:
- lib/ariadna/installer.rb
Constant Summary collapse
- MANIFEST_NAME =
"ariadna-manifest.json"- PATCHES_DIR =
"ariadna-local-patches"
Instance Attribute Summary collapse
-
#target_dir ⇒ Object
readonly
Returns the value of attribute target_dir.
Instance Method Summary collapse
-
#initialize(target_dir: nil, local: false, force_statusline: false) ⇒ Installer
constructor
A new instance of Installer.
- #install ⇒ Object
Constructor Details
#initialize(target_dir: nil, local: false, force_statusline: false) ⇒ Installer
Returns a new instance of Installer.
10 11 12 13 14 |
# File 'lib/ariadna/installer.rb', line 10 def initialize(target_dir: nil, local: false, force_statusline: false) @local = local @target_dir = target_dir || default_target_dir @force_statusline = force_statusline end |
Instance Attribute Details
#target_dir ⇒ Object (readonly)
Returns the value of attribute target_dir.
35 36 37 |
# File 'lib/ariadna/installer.rb', line 35 def target_dir @target_dir end |
Instance Method Details
#install ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/ariadna/installer.rb', line 16 def install puts "Ariadna v#{VERSION} — Installing to #{@target_dir}\n\n" save_local_patches remove_orphans copy_commands copy_agents copy_guides copy_content write_version install_statusline write_manifest report_local_patches puts "\nDone! Launch Claude Code and run /ariadna:help." end |