oneops-admin/lib/shared/test/integration/local_monkey_patch.rb
# Generates a command string which will perform any commands or
# configuration required just before the main provisioner run command but
# after the sandbox has been transferred to the instance. If no work is
# required, then `nil` will be returned.
#
# @return [String] a command string
Generates a command string which will perform any commands or
configuration required just before the main provisioner run command but
after the sandbox has been transferred to the instance. If no work is
required, then `nil` will be returned.
Generates a command string which will perform any commands or configuration required just before the main provisioner run command but after the sandbox has been transferred to the instance . If no work is required then ` nil ` will be returned .
def prepare_command
        file_name = File.join(
          config[:root_path],
          File.basename(config[:script])
        )
        code = "chmod +x #{file_name}"
        prefix_command(wrap_shell_code(sudo(code)))
      end
def prepare_command file_name = File . join ( config [ :root_path ] , File . basename ( config [ :script ] ) ) code = "chmod +x #{file_name}" prefix_command ( wrap_shell_code ( sudo ( code ) ) ) end
Generates a command string which will perform any commands or
configuration required just before the main provisioner run command but
after the sandbox has been transferred to the instance.
Generates a command string which will perform any commands or configuration required just before the main provisioner run command but after the sandbox has been transferred to the instance .
a command string
a command string
String