Sha256: f5f1dc183a227eb09adfeac8d882827de6597789146f3f0e5369a04b707a8ce6

Contents?: true

Size: 572 Bytes

Versions: 4

Compression:

Stored size: 572 Bytes

Contents

# frozen_string_literal: true

module Neptuno
  module CLI
    # Configure Neptuno defaults
    class Configure < Neptuno::CLI::Base
      desc "Configure which services to start by default"

      def call(**)
        configured_services = config.fetch("configured_services")
        configured_services = prompt.multi_select("Active services: ", config.fetch("services")) do |menu|
          menu.default(*configured_services)
        end
        config.set(:configured_services, value: configured_services)
        config.write(force: true)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neptuno-1.5.0 lib/neptuno/cli/configure.rb
neptuno-1.4.10 lib/neptuno/cli/configure.rb
neptuno-1.2.1 lib/neptuno/cli/configure.rb
neptuno-1.2.0 lib/neptuno/cli/configure.rb