Mount the repository.
977011
def mount(self):
        """"""
        if not self.is_mounted():
            # OS X mounting is handled automagically in /Volumes:
            # DO NOT mkdir there!
            # For Linux, ensure the mountpoint exists.
            if not is_osx():
                if not os.path.exists(self.connection["mount_point"]):
                    os.mkdir(self.connection["mount_point"])
            self._mount()
1114053
def pull(self):
        """"""
        repo_root = settings.REPO_ROOT
        pull_from_origin(join(repo_root, self.name))
403581
public function execute() {
        global $CFG;
        require_once($CFG->dirroot . '/repository/lib.php');

        $fs = get_file_storage();
        // Find all generated thumbnails and group them in array by itemid (itemid == repository instance id).
        $allfiles = array_merge(
            $fs->get_area_files(SYSCONTEXTID, 'repository_filesystem', 'thumb'),
            $fs->get_area_files(SYSCONTEXTID, 'repository_filesystem', 'icon')
        );
        $filesbyitem = array();
        foreach ($allfiles as $file) {
            if (!isset($filesbyitem[$file->get_itemid()])) {
                $filesbyitem[$file->get_itemid()] = array();
            }
            $filesbyitem[$file->get_itemid()][] = $file;
        }
        // Find all instances of repository_filesystem.
        $instances = \repository::get_instances(array('type' => 'filesystem'));
        // Loop through all itemids of generated thumbnails.
        foreach ($filesbyitem as $itemid => $files) {
            if (!isset($instances[$itemid]) || !($instances[$itemid] instanceof repository_filesystem)) {
                // Instance was deleted.
                $fs->delete_area_files(SYSCONTEXTID, 'repository_filesystem', 'thumb', $itemid);
                $fs->delete_area_files(SYSCONTEXTID, 'repository_filesystem', 'icon', $itemid);
                mtrace(" instance $itemid does not exist: deleted all thumbnails");
            } else {
                // Instance has some generated thumbnails, check that they are not outdated.
                $instances[$itemid]->remove_obsolete_thumbnails($files);
            }
        }
    }
424544
def create_repository(self, *args, **kwargs):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.BinAdminSession.create_bin
        return Repository(
            self._provider_manager,
            self._get_provider_session('repository_admin_session').create_repository(*args, **kwargs),
            self._runtime,
            self._proxy)
23636
def ensure_backend(resource, backend, backends, opt, managed=True):
    """"""
    existing_mount = find_backend(resource.mount, backends)
    if not existing_mount:
        new_mount = backend(resource, opt, managed=managed)
        backends.append(new_mount)
        return new_mount

    return existing_mount
163212
public function run() : void
    {
        $hooks = $this->getHooksToInstall();

        foreach ($hooks as $hook => $ask) {
            $this->installHook($hook, ($ask && !$this->force));
        }
    }
465773
def save_repository(self, repository_form, *args, **kwargs):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.BinAdminSession.update_bin
        if repository_form.is_for_update():
            return self.update_repository(repository_form, *args, **kwargs)
        else:
            return self.create_repository(repository_form, *args, **kwargs)
120412
def run(self):
        """"""
        script = path.realpath(__file__)
        self.log.debug('Running from %s with arguments: %s', script, self.args)

        if self.args.source:
            self.source = self.args.source
        else:
            # hardcoding as the parent-parent of the script for now
            self.source = path.dirname(path.dirname(script))
        self.log.debug('Sourcing dotfiles from %s', self.source)

        try:
            if self.args.repo:
                self.clone_repo()

            self.deploy_dotfiles(self.load_dotfiles())

        except:
            self.log.exception('Profile deploy failed')

        finally:
            if self.args.repo:
                self.cleanup_repo()
998584
def assemble(self):
        """"""

        self.canonify()
        args = [sys.argv and sys.argv[0] or "python"]
        if self.mountpoint:
            args.append(self.mountpoint)
        for m, v in self.modifiers.items():
            if v:
                args.append(self.fuse_modifiers[m])

        opta = []
        for o, v in self.optdict.items():
                opta.append(o + '=' + v)
        opta.extend(self.optlist)

        if opta:
            args.append("-o" + ",".join(opta))

        return args
521636
public function execute()
    {
        $this->repository->remove($this->object);

        $this->postRemove($this->object);
    }
964821
function mountHandlers() {
  var self = this;

  for (var id in this.handlers) {
    this.handlers[id].forEach(function(handler) {
      self.namespace.on(id, handler);
    });
  }
}
777225
def _mount(self):
        """"""
        # mount_afp "afp://scraig:<password>@address/share" <mnt_point>
        if is_osx():
            if self.connection["jss"].verbose:
                print self.connection["mount_url"]
            if mount_share:
                self.connection["mount_point"] = mount_share(
                    self.connection["mount_url"])
            else:
                # Non-Apple OS X python:
                args = ["mount", "-t", self.protocol,
                        self.connection["mount_url"],
                        self.connection["mount_point"]]
                if self.connection["jss"].verbose:
                    print " ".join(args)
                subprocess.check_call(args)
        elif is_linux():
            args = ["mount_afp", "-t", self.protocol,
                    self.connection["mount_url"],
                    self.connection["mount_point"]]
            if self.connection["jss"].verbose:
                print " ".join(args)
            subprocess.check_call(args)
        else:
            raise JSSError("Unsupported OS.")
948280
def _mount_resources(self):
        ''''''
        rules = []
        self.callback_map = {}
        for ep in Resource:
            for rule, callback in ep.get_routing_tuples():
                log.debug('Path "{}" mapped to "{}"'.format(
                    rule.rule, rule.endpoint))
                rules.append(rule)
                self.callback_map[rule.endpoint] = callback
        self.url_map = Map(rules)
1294362
function mount(data) {
  var promises = [];
  this.each(function() {
    var view = select(this).view();
    if (view) promises.push(mountElement(this, view, data));
    else warn("Cannot mount, no view object available to mount to");
  });
  return Promise.all(promises);
}
216648
public static function mount()
	{
		foreach (self::$staticProxy as $staticProxy)
		{
			$staticProxyObject = '\\LeagueWrap\\StaticProxy\\Static'.$staticProxy;
			// mount it
			$staticProxyObject::mount();
			// freshen it up
			$staticProxyObject::fresh();
		}
	}
812408
def with_mounts(*args, uchroot_cmd_fn=no_args, **kwargs):
    """"""
    mounts = CFG["container"]["mounts"].value
    prefixes = CFG["container"]["prefixes"].value

    uchroot_opts, mounts = __mounts__("mnt", mounts)
    uchroot_cmd = uchroot_cmd_fn(**kwargs)
    uchroot_cmd = uchroot_cmd[uchroot_opts]
    uchroot_cmd = uchroot_cmd[args]
    paths, libs = env(mounts)
    prefix_paths, prefix_libs = env(prefixes)

    uchroot_cmd = run.with_env_recursive(
        uchroot_cmd,
        LD_LIBRARY_PATH=path.list_to_path(libs + prefix_libs),
        PATH=path.list_to_path(paths + prefix_paths))
    return uchroot_cmd
1109409
public function mount($uriSpace)
    {
        foreach ($this->uri as $index => $uri) {
            $this->uri[$index] = $uriSpace.$this->uri[$index];
        }
    }