docs/libmachine
Matt McNaughton 003770f2d4 Use a single function for checking active machine
Fix https://github.com/docker/machine/issues/1651

As pointed out in the issue above, the `active` and `ls` commands used
different methods for determing the active machine. This commit defines
a single method on the `host` struct called `IsActive` which provides
a uniform check for machine activness. `IsActive` returns true only
if `DOCKER_HOST == url` and the state is not stopped - previously the
`active` command only checked the url.

* Add a single `host` method `IsActive` for determining if a machine is
  active.

Signed-off-by: Matt McNaughton <mattjmcnaughton@gmail.com>
2015-08-07 15:58:51 -04:00
..
auth Fix missing test files 2015-03-20 17:05:27 -07:00
engine added support for setting environment variables in docker engines 2015-07-16 16:12:06 -04:00
provision Revert "Merge pull request #1552 from ehazlett/b2d-next" 2015-08-03 14:46:52 -07:00
swarm support specifying swarm image and docker versions 2015-06-01 16:20:56 -04:00
certs.go provisioner: finished migration functions 2015-03-20 23:17:42 -04:00
errors.go Move code to use SSH "backends" 2015-05-19 15:02:57 -07:00
filestore.go Use a single function for checking active machine 2015-08-07 15:58:51 -04:00
filestore_test.go libmachine: fix a test error message to show an expected host name 2015-07-31 16:38:00 +09:00
host.go Use a single function for checking active machine 2015-08-07 15:58:51 -04:00
host_test.go Read active host from DOCKER_HOST instead of from file 2015-05-04 16:29:04 -07:00
host_v0.go - Re-introduce config migration; fix panics occurring from older configs 2015-07-28 15:38:16 -07:00
migrate.go - Re-introduce config migration; fix panics occurring from older configs 2015-07-28 15:38:16 -07:00
migrate_v0_v1.go - Re-introduce config migration; fix panics occurring from older configs 2015-07-28 15:38:16 -07:00
migrate_v0_v1_test.go - Re-introduce config migration; fix panics occurring from older configs 2015-07-28 15:38:16 -07:00
provider.go Rename libmachine.Machine to libmachine.Provider 2015-07-09 10:24:29 -07:00
provider_test.go Rename libmachine.Machine to libmachine.Provider 2015-07-09 10:24:29 -07:00
store.go Read active host from DOCKER_HOST instead of from file 2015-05-04 16:29:04 -07:00