lib/kitchen/busser.rb
# Returns a command string which transfers all suite test files to the
# instance.
#
# If no work needs to be performed, for example if there are no tests for
# the given suite, then `nil` will be returned.
#
# @return [String] a command string to transfer all suite test files, or
#   nil if no work needs to be performed.
Returns a command string which transfers all suite test files to the
instance.

If no work needs to be performed, for example if there are no tests for
the given suite, then `nil` will be returned.
Returns a command string which transfers all suite test files to the instance . If no work needs to be performed for example if there are no tests for the given suite then ` nil ` will be returned .
def sync_cmd
      @sync_cmd ||= if local_suite_files.empty?
        nil
      else
        <<-INSTALL_CMD.gsub(/^ {10}/, '')
          bash -c '
          #{sudo}#{busser_bin} suite cleanup
          #{local_suite_files.map { |f| stream_file(f, remote_file(f, @suite_name)) }.join}
          #{helper_files.map { |f| stream_file(f, remote_file(f, "helpers")) }.join}'
        INSTALL_CMD
      end
    end
def sync_cmd @sync_cmd ||= if local_suite_files . empty? nil else <<-INSTALL_CMD . gsub ( / ^ {10} / , '' ) 
          bash -c '
           #{ sudo } #{ busser_bin }  suite cleanup
           #{ local_suite_files . map { | f | stream_file ( f , remote_file ( f , @suite_name ) ) } . join } #{ helper_files . map { | f | stream_file ( f , remote_file ( f , "helpers" ) ) } . join } '
         INSTALL_CMD end end
Returns a command string which transfers all suite test files to the
instance.
Returns a command string which transfers all suite test files to the instance .
a command string to transfer all suite test files, or nil if no work needs to be performed.
a command string to transfer all suite test files or nil if no work needs to be performed .
String