Sha256: b2e92d369d90325b4fde90d8dfe5d9807cf93b48649f820b66cd656d709dc831

Contents?: true

Size: 746 Bytes

Versions: 2

Compression:

Stored size: 746 Bytes

Contents

class AliasGeneratorManager
  def initialize
    @generator = AliasGenerator.new
  end

  def start
    Solara.logger.start_step("Generate terminal command aliases")
    common_aliases = [
      "solara_dashboard='solara dashboard'",
      "solara_doctor='solara doctor'",
      "solara_status='solara status'",
    ]

    @generator.add_brand_aliases(BrandsManager.instance.brands_list)
    @generator.add_common_aliases(common_aliases)
    @generator.generate_shell_file
    @generator.save_aliases_to_json
    @generator.generate_readme

    SolaraSetup.new.run
    Solara.logger.end_step("Generate terminal command aliases")
  end

  def self.aliases_json
      path = FilePath.solara_aliases_json
      JSON.parse(File.read(path))
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solara-0.2.2 solara/lib/core/aliases/alias_generator_manager.rb
solara-0.2.1 solara/lib/core/aliases/alias_generator_manager.rb