def cache_dir(script)
      # prefix object ID with a text constant to make a legal directory name
      # in case object id is negative (Ubuntu, etc.). this method will be called
      # more than once and must return the same directory each time for a given
      # script instantiation.
      path = File.normalize_path(File.join(AgentConfig.cache_dir, 'right_scripts_content', "rs_attach" + script.object_id.to_s))

      # convert to native format for ease of scripting in Windows, etc. the
      # normalized path is normal for Ruby but not necessarily for native FS.
      return RightScale::Platform.filesystem.pretty_path(path, true)
    end
def cache_dir(script)
      # prefix object ID with a text constant to make a legal directory name
      # in case object id is negative (Ubuntu, etc.). this method will be called
      # more than once and must return the same directory each time for a given
      # script instantiation.
      path = File.normalize_path(File.join(AgentConfig.cache_dir, 'right_scripts_content', "rs_attach" + script.object_id.to_s))

      # convert to native format for ease of scripting in Windows, etc. the
      # normalized path is normal for Ruby but not necessarily for native FS.
      return RightScale::Platform.filesystem.pretty_path(path, true)
    end
Path to cache directory for given script

 === Parameters
 script(Object):: script object of some kind (e.g. RightScale::RightScriptInstantiation)

 === Return
 path(String):: Path to directory used for attachments and source