lib/pdk/cli/exec/interactive_command.rb in pdk-2.6.1 vs lib/pdk/cli/exec/interactive_command.rb in pdk-2.7.0
- old
+ new
@@ -13,27 +13,27 @@
# Extra environment vars to add to base set.
@environment = {}
end
def register_spinner(_spinner, _opts = {})
- raise _('This method is not implemented for PDK::CLI::Exec::InteractiveCommand')
+ raise 'This method is not implemented for PDK::CLI::Exec::InteractiveCommand'
end
def add_spinner(_message, _opts = {})
- raise _('This method is not implemented for PDK::CLI::Exec::InteractiveCommand')
+ raise 'This method is not implemented for PDK::CLI::Exec::InteractiveCommand'
end
def timeout
- raise _('This method is not implemented for PDK::CLI::Exec::InteractiveCommand')
+ raise 'This method is not implemented for PDK::CLI::Exec::InteractiveCommand'
end
def timeout=(_val)
- raise _('This method is not implemented for PDK::CLI::Exec::InteractiveCommand')
+ raise 'This method is not implemented for PDK::CLI::Exec::InteractiveCommand'
end
def exec_group=(_val)
- raise _('This method is not implemented for PDK::CLI::Exec::InteractiveCommand')
+ raise 'This method is not implemented for PDK::CLI::Exec::InteractiveCommand'
end
def execute!
require 'pdk/util'
@@ -41,11 +41,11 @@
if [:module, :pwd].include?(context)
mod_root = PDK::Util.module_root
unless mod_root
- raise PDK::CLI::FatalError, _('Current working directory is not part of a module. (No metadata.json was found.)')
+ raise PDK::CLI::FatalError, 'Current working directory is not part of a module. (No metadata.json was found.)'
end
unless context == :pwd || Dir.pwd == mod_root
orig_workdir = Dir.pwd
Dir.chdir(mod_root)
@@ -70,14 +70,14 @@
protected
# TODO: debug logging
def run_process!
command_string = argv.join(' ')
- PDK.logger.debug(_("Executing '%{command}' interactively") % { command: command_string })
+ PDK.logger.debug("Executing '%{command}' interactively" % { command: command_string })
if context == :module
- PDK.logger.debug(_('Command environment:'))
+ PDK.logger.debug('Command environment:')
@resolved_env.each do |var, val|
PDK.logger.debug(" #{var}: #{val}")
end
end
@@ -86,12 +86,12 @@
system(@resolved_env, *argv)
exit_code = child_status.exitstatus
duration = Time.now - start_time
- PDK.logger.debug(_("Execution of '%{command}' complete (duration: \
- %{duration_in_seconds}s; exit code: %{exit_code})") %
+ PDK.logger.debug("Execution of '%{command}' complete (duration: \
+ %{duration_in_seconds}s; exit code: %{exit_code})" %
{
command: command_string,
exit_code: exit_code,
duration_in_seconds: duration,
})
@@ -104,10 +104,10 @@
$CHILD_STATUS
end
def stop_spinner
- raise _('This method is not implemented for PDK::CLI::Exec::InteractiveCommand')
+ raise 'This method is not implemented for PDK::CLI::Exec::InteractiveCommand'
end
end
end
end
end