lib/ass_launcher/api.rb in ass_launcher-0.3.4 vs lib/ass_launcher/api.rb in ass_launcher-0.4.0

- old
+ new

@@ -12,19 +12,55 @@ # @return [Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>] def thicks(requiremet = '>= 0') AssLauncher::Enterprise.thick_clients(requiremet).sort end + # Return sorted array of instaled x86_64 1C binary wrappers + # @param (see thicks) + # @return (see thicks) + def thicks_x86_64(requiremet = '>=0') + thicks(requiremet).select do |bw| + bw.x86_64? + end + end + + # Return sorted array of instaled i386 1C binary wrappers + # @param (see thicks) + # @return (see thicks) + def thicks_i386(requiremet = '>=0') + thicks(requiremet).select do |bw| + !bw.x86_64? + end + end + # Return sorted array of instaled 1C binary wrappers # @example # inclide AssLauncher::Api # # I can get 1C thin client specific version # cl = thins('~> 8.3.8.0').last # fail "Client '~> 8.3.8.0' not found" if cl.nil? # @param (see .thicks) # @return [Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>] def thins(requiremet = '>= 0') AssLauncher::Enterprise.thin_clients(requiremet).sort + end + + # Return sorted array of instaled x86_64 1C binary wrappers + # @param (see thins) + # @return (see thins) + def thins_x86_64(requiremet = '>=0') + thins(requiremet).select do |bw| + bw.x86_64? + end + end + + # Return sorted array of instaled i386 1C binary wrappers + # @param (see thins) + # @return (see thins) + def thins_i386(requiremet = '>=0') + thins(requiremet).select do |bw| + !bw.x86_64? + end end # (see AssLauncher::Support::ConnectionString.new) # @example # include AssLauncher::Api