You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bash_script.rb
    path of file: ./repos/travis-build/spec/spec_helpers
    
    the code of the file until where you have to start completion: module SpecHelpers
  module BashScript
    def fake_homedir
      @fake_homedir ||=
    
    def docker_ps_records
      ps_args = [
        '--filter=label=travis-build',
        '--no-trunc',
        %{--format='{"running_for":{{json .RunningFor}},"id":{{json .ID}}}'}
      ]
      `docker ps #{ps_args.join(' ')}`.split("\n").map do |line|
        JSON.parse(line)
      end
    end