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, #thicks_i386, #thicks_x86_64, #thins, #thins_i386, #thins_x86_64, #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.



915
916
917
# File 'lib/ass_launcher/cmd.rb', line 915

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.



911
912
913
# File 'lib/ass_launcher/cmd.rb', line 911

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



926
927
928
929
930
931
932
933
934
935
# File 'lib/ass_launcher/cmd.rb', line 926

def execute
  puts Colorize.red "Ruby arch: #{RbConfig::CONFIG['arch']}"
  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.reverse)
  puts Colorize.yellow 'Thin client installations:'
  puts Colorize.green list(thins.reverse)
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.



919
920
921
922
923
# File 'lib/ass_launcher/cmd.rb', line 919

def list(clients)
  " - v#{clients.map do |cl|
    "#{cl.version} (#{cl.arch})"
  end.join("\n - v")}"
end