Class: AssLauncher::Cmd::Main::SubCommands::Env Private

Inherits:
Abstract::SubCommand show all
Includes:
Api, Abstract::Option::SearchPath
Defined in:
lib/ass_launcher/cmd.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

env subcommand

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Api

#cs, #cs_file, #cs_http, #cs_srv, #load_v8i, #ole, #thicks, #thins, #web_client

Methods included from Abstract::Option::SearchPath

included

Methods included from Abstract::SubCommand::Declaration

#declare_subcommands, #subcommand_

Class Method Details

._bannerObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



871
872
873
# File 'lib/ass_launcher/cmd.rb', line 871

def self._banner
  'Show 1C:Enterprise installations'
end

.command_nameObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



867
868
869
# File 'lib/ass_launcher/cmd.rb', line 867

def self.command_name
  'env'
end

Instance Method Details

#executeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Metrics/AbcSize



880
881
882
883
884
885
886
887
888
# File 'lib/ass_launcher/cmd.rb', line 880

def execute
  puts Colorize.yellow '1C:Enterprise installations was searching in:'
  puts Colorize
    .green " - #{AssLauncher::Enterprise.search_paths.join("\n - ")}"
  puts Colorize.yellow 'Thick client installations:'
  puts Colorize.green list(thicks)
  puts Colorize.yellow 'Thin client installations:'
  puts Colorize.green list(thins)
end

#list(clients) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



875
876
877
# File 'lib/ass_launcher/cmd.rb', line 875

def list(clients)
  " - v#{clients.map(&:version).sort.reverse.join("\n - v")}"
end