Permalink
Commits on Dec 11, 2012
  1. Upgrade to version 0.9.1

    marc0der committed Dec 11, 2012
  2. Source files in ext folder.

    marc0der committed Dec 11, 2012
Commits on Dec 10, 2012
  1. Add GVM_DIR to selfupdate.

    marc0der committed Dec 10, 2012
  2. Tweaks to broadcast script.

    marc0der committed Dec 10, 2012
Commits on Dec 9, 2012
Commits on Dec 7, 2012
  1. Upgrade to 0.9.0

    marc0der committed Dec 7, 2012
  2. Fix intermittent test errors with broadcast msg.

    A bash prompt often crept into the output for one of the broadcast feature
    tests, which then cause that test to fail. I have set the prompt to an empty
    string, hence eliminating that source of problems :)
    pledbrook committed with marc0der Dec 6, 2012
  3. Change path and name of gvm user config file.

    This change also exposed a problem in the Cucumber tests with isolated mode,
    so I have fixed the tests to handle separation of currently active version
    and the default version of a candidate.
    pledbrook committed with marc0der Dec 6, 2012
  4. Fix cucumber tests for per-shell versions feature.

    Since gvm is now a function that is sourced into the current shell, the old
    Cucumber tests no longer work as they try to execute 'gvm' as a process. This
    fix instead launches an external bash process for each scenario and pipes the
    required commands to it.
    
    A lot of the magic happens in the new BashEnv class which handles the piping
    of commands and also managing the output correctly.
    
    This is further work on issue #52.
    pledbrook committed with marc0der Dec 6, 2012
  5. Add initial support for per-shell versions: issue #52

    In order to make version changes only apply to the current shell, I had to make
    the `gvm-init.sh` script source the `gvm` one. This meant replacing all `exit`
    calls in the latter with `return`s and changing the name of the functions by
    prefixing them with `__gvmtool_` (to avoid the functions appearing in bash
    auto-completion by accident).
    
    Note that this feature is not enabled by default. The user must create a
    ~/.gvm/gvmconfig file and add 'isolated_mode=1' to it in order to enable the
    feature.
    
    To help with some of the internals, `gvm-init.sh` now exports the `GVM_DIR`
    variable if it hasn't already been set by the user. This makes it available to
    `gvm` and any plugin scripts that get executed in sub-shells.
    
    `gvm-init.sh` also sources any scripts in `$GVM_DIR/ext` whose name begins
    with `sourced-`, allowing users to extend the system with extra functionality
    implemented via bash functions. They are required to name their functions with
    `__gvmtool_<command>`. Plugins can also be implemented as straight
    `gvm-<command>.sh` scripts, but these manually need to source the `gvm` script
    if they want access to its internal functions, such as `__gvmtool_help`.
    
    In this 'isolated mode', users need some way of setting the default version of
    candidates for new shells. So I have also added a new 'set-default' command
    that updates the 'current' symlink to the specified candidate version.
    pledbrook committed with marc0der Nov 27, 2012
Commits on Dec 6, 2012
  1. Revert "Move mongo js for release script to pick up."

    This reverts commit e7858acb71b0d338a47203353189abae299f5b6f.
    marc0der committed Dec 5, 2012
Commits on Dec 5, 2012