Commit Graph

136 Commits

Author SHA1 Message Date
Guillaume Giamarchi f6b0c81996 Add OpenStack driver
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2015-01-14 22:01:31 +01:00
Simon Thulbourn e479c82f64 Fix for panics when no active host is set
By adding some better error checking on `store.GetActive`, we can stop
getting panics on some commands

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-14 18:16:34 +00:00
Simon Thulbourn 912ec5cc24 Stop machine from overriding an existing machine
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-14 17:55:21 +00:00
Simon Thulbourn c8b36dfbfc Add unknown command help
Spits out "machine: '<command>' is not a machine command see 'machine
--help'" to be inline with Docker

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2015-01-09 23:38:59 +00:00
Evan Hazlett 5a251c5d1b Merge pull request #6 from cloudnativeapps/vmw-drivers
VMware host drivers for Fusion, vSphere and vCloud Air
2015-01-08 11:11:39 -08:00
Fabio Rapposelli 6b31904d43 Godeps save and enable commands
Signed-off-by: Fabio Rapposelli <frapposelli@vmware.com>
2015-01-08 11:00:54 +01:00
Evan Hazlett df5ecadf80
logging updates from @nathanleclaire
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-07 17:37:17 -08:00
Evan Hazlett 414f94b7d1 add cleanup for create failure
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2015-01-07 17:35:33 -08:00
Nathan LeClaire 062b7fced7 Move closures to be named functions
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-01-07 14:33:06 -08:00
Nathan LeClaire 80436e9b66 Add getHostState test
Also took this opportunity to move getHostState to the bottom of the
file following the existing pattern.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-01-07 10:31:09 -08:00
Nathan LeClaire 782f3faa89 Refactor ls to use a channel instead
This eliminates the "sync" dep and makes the code easier to read.

Share by communicating, don't communicate by sharing ;)

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2015-01-06 02:22:31 -05:00
Ben Firshman 37662736a7 Merge pull request #123 from ehazlett/integration-tests
Integration tests
2014-12-31 17:36:08 +00:00
Ben Firshman df56d070f0 Merge pull request #54 from dlorenc/master
GCE Driver.
2014-12-31 17:30:56 +00:00
Evan Hazlett d52399a22d
fixes from @nathanleclaire
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2014-12-30 15:11:24 -05:00
Evan Hazlett 1b1e678b76 added helper script for running tests in docker
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2014-12-30 12:59:04 -05:00
Simon Thulbourn 003c0dd093 Configurable storage path
As per #77, this PR adds --storage-path/MACHINE_STORAGE_PATH (env var)
to allow the user to specify where they want to store the machine db

Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2014-12-26 19:57:48 +00:00
Johan Euphrosine 47004d74d6 drivers: rename googlecomputeengine to google
Signed-off-by: Johan Euphrosine <proppy@google.com>
2014-12-18 11:28:55 -08:00
dlorenc 17d8b16a37 GCE Driver.
Signed-off-by: Dan Lorenc <lorenc.d@gmail.com>
2014-12-15 20:23:38 -08:00
Ben Firshman a913c06888 Restore sorting of ls output
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-15 10:46:35 -08:00
Ben Firshman 91172449c0 Handle errors in commands
Some errors were swallowed entirely, some didn't print the error
message.

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-15 10:45:55 -08:00
Ben Firshman da95ea3968 Merge pull request #103 from ggiamarchi/machine-name-optional
Make machine name optional in CLI
2014-12-15 17:53:30 +00:00
Guillaume Giamarchi d730d39c48 Avoid code duplication
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2014-12-14 02:11:24 +01:00
Guillaume Giamarchi 8613b941e8 Make machine name optional in CLI
For commands inspect, ip, kill and restart.
It is already implemented for the others.

Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2014-12-14 02:09:08 +01:00
Guillaume Giamarchi 6c5da2bc0e Fix bug SSH interactive mode
Commit b44db20 introduced a bug that broke
the SSH interactive mode. If no command is
provided, Driver.GetSSHCommand is called with
an empty string instead of no parameter.

Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2014-12-13 18:46:52 +01:00
Evan Hazlett 909e69baff initial work on aws for machine; huge thanks to @nathanleclaire for the
initial implementation

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2014-12-12 17:00:57 -05:00
Evan Hazlett 2435f265f2
fixes #94: url does not return active machine
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
2014-12-12 15:40:30 -05:00
Simon Thulbourn b44db20335 implements a -c/--command flag for ssh
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2014-12-12 18:28:30 +00:00
Simon Thulbourn 0295e00edb makes the name optional for stop/start/ssh/upgrade
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2014-12-12 18:11:38 +00:00
Simon Thulbourn 64c73597e2 adds codegangsta/cli
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
2014-12-12 18:11:17 +00:00
Guillaume Giamarchi d8921ee432 Move HostListItem from host.go to command.go
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2014-12-12 01:53:24 +01:00
Guillaume Giamarchi 8797ca2d50 Rename HostState struct to HostListItem
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2014-12-12 01:44:34 +01:00
Guillaume Giamarchi 1547a48dde Sort `machine ls` output by machine name
Signed-off-by: Guillaume Giamarchi <guillaume.giamarchi@gmail.com>
2014-12-12 00:39:08 +01:00
Ben Firshman dcf081d758 Check that public key exists when creating machine
Fixes #4

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-06 20:54:41 +01:00
Ben Firshman b8ec7bf9a3 Fix command name in help text
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-06 20:33:42 +01:00
Ben Firshman ceec43ebcc Explain setting up Docker to run against machines
Closes #14

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-05 13:58:26 +01:00
Ben Firshman 73d19108bf Initial commit
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-04 15:05:11 +01:00