Commit Graph

262 Commits

Author SHA1 Message Date
Marco Vermeulen
d29a2bc7fa Upgrade to 0.9.0 2012-12-07 13:56:29 +00:00
Marco Vermeulen
a51eb0ba66 Initialise config file on install. 2012-12-07 13:51:32 +00:00
Marco Vermeulen
70463aa7a2 Initialise config file on selfupdate. 2012-12-07 13:45:00 +00:00
Marco Vermeulen
b60b935ec7 Fix noinspection hint for idea. Moved clashing manual tag to scenario level. 2012-12-07 12:39:16 +00:00
Marco Vermeulen
3d34cac70f Fix typo in install gvm feature. 2012-12-07 12:22:37 +00:00
Marco Vermeulen
b782216def Ignore undefined cucumber steps for install gvm feature from inspection by idea. 2012-12-07 12:22:13 +00:00
Marco Vermeulen
467074f8d1 Rename PLATFORM variable to GVM_PLATFORM. 2012-12-07 11:57:13 +00:00
Marco Vermeulen
969606ec23 Move gvm version and platform variables to init script. 2012-12-07 11:47:29 +00:00
Marco Vermeulen
79cf4e8153 Remove comments from main gvm script. 2012-12-07 11:41:14 +00:00
Marco Vermeulen
5e28fb9282 Reapply code formatting on scripts. 2012-12-07 11:36:26 +00:00
Marco Vermeulen
56963f1c0b Upgrade version feature to 0.8.4 2012-12-07 11:35:53 +00:00
Peter Ledbrook
b4b787f1f1 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 :)
2012-12-07 10:31:48 +00:00
Peter Ledbrook
85f8e4879e 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.
2012-12-07 10:31:48 +00:00
Peter Ledbrook
6cc537b104 Rename 'set-default' command to 'default'. 2012-12-07 10:31:47 +00:00
Peter Ledbrook
5952e17660 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.
2012-12-07 10:31:47 +00:00
Peter Ledbrook
ab94125c35 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.
2012-12-07 10:28:18 +00:00
Marco Vermeulen
2746568f4c Add license to install and selfupdate scripts. 2012-12-06 10:35:37 +00:00
Marco Vermeulen
248bad9cb8 Revert "Move mongo js for release script to pick up."
This reverts commit e7858acb71b0d338a47203353189abae299f5b6f.
2012-12-06 10:35:37 +00:00
Marco Vermeulen
ce613f74b9 Move mongo js for release script to pick up. 2012-12-06 10:35:37 +00:00
Marco Vermeulen
de12b2041b Upgrade to cucumber-jvm 1.0.14 and vert.x 1.3.0.final in gradle build. 2012-12-05 20:55:50 +00:00
Marco Vermeulen
d110c9467a Rename mongo release script and fix typo. 2012-12-05 14:31:23 +00:00
Marco Vermeulen
cb2ab48638 Upgrade test and VertxUtils to 0.8.4. 2012-12-05 14:05:08 +00:00
Marco Vermeulen
2c272a21f7 Upgrade config to 0.8.4 2012-12-05 14:00:26 +00:00
Marco Vermeulen
8df7fe07dd MongoDB script for release 0.8.4 2012-12-05 13:59:54 +00:00
Marco Vermeulen
7781b9a020 Add Apache 2.0 license to scripts. Remove appendix from main license file. 2012-12-05 13:55:30 +00:00
Marco Vermeulen
11050c9f20 Bash script code formatting, improvements and bug fixes. 2012-12-05 13:15:03 +00:00
Marco Vermeulen
0da057f53d Code formatting and fixes on server.groovy. 2012-12-05 11:59:14 +00:00
Marco Vermeulen
e43cfb636e Clean up step definitions: package declarations, imports and code formatting. 2012-12-05 11:41:51 +00:00
Marco Vermeulen
684feadd26 Ignore resouces from git. 2012-12-04 17:35:40 +00:00
Marco Vermeulen
beac74d943 Ignore intellij resources. 2012-12-04 15:17:08 +00:00
Marco Vermeulen
d549822e81 Add Intellij gradle plugin. 2012-12-04 15:16:46 +00:00
Marco Vermeulen
e62bef88c4 Rename GVM_BASE to GVM_DIR. 2012-12-03 21:10:30 +00:00
Marco Vermeulen
a8590258d2 Remove JAVA_HOME declaration from run.sh. Replace with sanity check. 2012-12-03 20:50:09 +00:00
Marco Vermeulen
265df38f75 Moved current candidate features to own feature file. Change output format on gvm current. 2012-12-03 20:48:30 +00:00
Marco Vermeulen
fdcfe64dcc Introduce BASE_DIR variable. Also adds ext dir for custom extensions to path. 2012-12-03 16:46:21 +00:00
Marco Vermeulen
449a3be7a3 Drop application collection from db. 2012-12-03 14:46:43 +00:00
Marco Vermeulen
44050a98b2 Updates to js db scripts. Remove gvmVersion and vertxVersion from application collection. 2012-12-03 14:38:11 +00:00
Marco Vermeulen
39e209fc2c Pick up mongo configuration from root of project. Ignore from git. 2012-12-03 11:57:40 +00:00
Marco Vermeulen
40211c4ab8 Merge pull request #80 from mhurne/current-without-candidate-specified
'gvm current' without candidate specified lists current versions of all installed candidates
2012-12-03 03:29:13 -08:00
Marco Vermeulen
390df8097a Token filtering for gvm and vertx versions in server script. Rework config. 2012-12-03 10:41:22 +00:00
Marco Vermeulen
d17e4a0f3d Add Apache 2.0 license. 2012-12-02 20:04:03 +00:00
Marco Vermeulen
9a1bc10dd9 Remove ws call from help command. 2012-12-02 20:03:42 +00:00
Matt Hurne
39cb44d6c9 'gvm current' without candidate specified lists current versions of all installed candidates 2012-12-01 22:22:32 -05:00
Marco Vermeulen
87eae69672 Source the initialisation script once only. 2012-11-26 22:19:11 +00:00
Marco Vermeulen
a8fd5cac5b Remove dependency on zip command. Use unzip -T instead. 2012-11-23 14:01:16 +00:00
Marco Vermeulen
774acc12da Updated README to reflect latest gradle changes. 2012-11-21 10:37:21 +00:00
Marco Vermeulen
35c4b866d9 Remove build.sh. Gradle now runs -directly. 2012-11-21 10:29:06 +00:00
Marco Vermeulen
24e435fdb3 Update gradle wrapper to 1.3 2012-11-21 10:28:21 +00:00
Marco Vermeulen
217b3b3106 Mark upgrade feature as manual. Remove related resources. 2012-11-20 17:24:05 +00:00
Marco Vermeulen
c74459e5ae Move scripts to main src tree, update gradle build. 2012-11-20 16:11:12 +00:00