Sha256: 67595b1ab934e30f80f211c2cd727dd6201718b7c6607665080ea285e437e57a

Contents?: true

Size: 677 Bytes

Versions: 6

Compression:

Stored size: 677 Bytes

Contents

module Lono::Bundler
  class Runner < CLI::Base
    def run
      Syncer.new(@options).run
      Exporter.new(@options).run
      # finish_message
    end

    def finish_message
      no_components_found = true
      export_paths.each do |path|
        found = Dir.exist?(path) && !Dir.empty?(path)
        next unless found
        logger.info  "components saved to #{path}"
        no_components_found = false
      end

      logger.info("No components were found.") if no_components_found
    end

    def export_paths
      export_paths = Lonofile.instance.mods.map(&:export_to).compact.uniq
      export_paths << LB.config.export_to
      export_paths
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/bundler/runner.rb
lono-8.0.0.pre.rc5 lib/lono/bundler/runner.rb
lono-8.0.0.pre.rc4 lib/lono/bundler/runner.rb
lono-8.0.0.pre.rc3 lib/lono/bundler/runner.rb
lono-8.0.0.pre.rc2 lib/lono/bundler/runner.rb
lono-8.0.0.pre.rc1 lib/lono/bundler/runner.rb