lib/pdk/cli/exec_group.rb in pdk-2.6.1 vs lib/pdk/cli/exec_group.rb in pdk-2.7.0
- old
+ new
@@ -36,11 +36,11 @@
#
# @param block [Block] A block of ruby to execute
#
# @api private
def register(&_block)
- raise PDK::CLI::FatalError, _('No block registered') unless block_given?
+ raise PDK::CLI::FatalError, 'No block registered' unless block_given?
end
# The return code of running all registered blocks
#
# @return [int] The highest exit code from the blocks
@@ -86,11 +86,9 @@
# TODO: This executes the thread immediately, whereas the SerialExecGroup executes only when exit_code
# is called. Need to change this so it uses a kind of ThreadPool to limit to number on concurrent jobs
# and only starts on the call to exit_code
# e.g. max_threads = No. of CPUs
@threads << Thread.new do
- GettextSetup.initialize(File.absolute_path('../../../locales', File.dirname(__FILE__)))
- GettextSetup.negotiate_locale!(GettextSetup.candidate_locales)
@exit_codes << yield
end
end
def exit_code