@@ -8,27 +8,13 @@ import (
8
8
"path/filepath"
9
9
10
10
"github.com/codegangsta/cli"
11
- "github.com/docker/machine/commands"
12
- "github.com/docker/machine/commands/mcndirs"
13
- "github.com/docker/machine/drivers/amazonec2"
14
- "github.com/docker/machine/drivers/azure"
15
- "github.com/docker/machine/drivers/digitalocean"
16
- "github.com/docker/machine/drivers/exoscale"
17
- "github.com/docker/machine/drivers/generic"
18
- "github.com/docker/machine/drivers/google"
19
- "github.com/docker/machine/drivers/hyperv"
20
- "github.com/docker/machine/drivers/none"
21
- "github.com/docker/machine/drivers/openstack"
22
- "github.com/docker/machine/drivers/rackspace"
23
- "github.com/docker/machine/drivers/softlayer"
24
- "github.com/docker/machine/drivers/virtualbox"
25
- "github.com/docker/machine/drivers/vmwarefusion"
26
- "github.com/docker/machine/drivers/vmwarevcloudair"
27
- "github.com/docker/machine/drivers/vmwarevsphere"
28
11
"github.com/docker/machine/libmachine/drivers/plugin"
29
12
"github.com/docker/machine/libmachine/drivers/plugin/localbinary"
30
13
"github.com/docker/machine/libmachine/log"
31
- "github.com/docker/machine/version"
14
+ "github.com/lambda-linux/lambda-machine-local/commands"
15
+ "github.com/lambda-linux/lambda-machine-local/commands/mcndirs"
16
+ "github.com/lambda-linux/lambda-machine-local/drivers/virtualbox"
17
+ "github.com/lambda-linux/lambda-machine-local/version"
32
18
)
33
19
34
20
var AppHelpTemplate = `Usage: {{.Name}} {{if .Flags}}[OPTIONS] {{end}}COMMAND [arg...]
@@ -50,7 +36,7 @@ Commands:
50
36
Run '{{.Name}} COMMAND --help' for more information on a command.
51
37
`
52
38
53
- var CommandHelpTemplate = `Usage: docker -machine {{.Name}}{{if .Flags}} [OPTIONS]{{end}} [arg...]
39
+ var CommandHelpTemplate = `Usage: lambda -machine-local {{.Name}}{{if .Flags}} [OPTIONS]{{end}} [arg...]
54
40
55
41
{{.Usage}}{{if .Description}}
56
42
@@ -96,15 +82,15 @@ func main() {
96
82
cli .CommandHelpTemplate = CommandHelpTemplate
97
83
app := cli .NewApp ()
98
84
app .Name = filepath .Base (os .Args [0 ])
99
- app .Author = "Docker Machine Contributors"
100
- app .Email = "https://github.com/docker/ machine"
85
+ app .Author = "Lambda Machine Local Contributors"
86
+ app .Email = "https://github.com/lambda-linux/lambda- machine-local "
101
87
102
88
app .Commands = commands .Commands
103
89
app .CommandNotFound = cmdNotFound
104
- app .Usage = "Create and manage machines running Docker."
90
+ app .Usage = "Create and manage local machines running Docker."
105
91
app .Version = version .FullVersion ()
106
92
107
- log .Debug ("Docker Machine Version: " , app .Version )
93
+ log .Debug ("Lamba Machine Local Version: " , app .Version )
108
94
109
95
app .Flags = []cli.Flag {
110
96
cli.BoolFlag {
@@ -117,30 +103,6 @@ func main() {
117
103
Value : mcndirs .GetBaseDir (),
118
104
Usage : "Configures storage path" ,
119
105
},
120
- cli.StringFlag {
121
- EnvVar : "MACHINE_TLS_CA_CERT" ,
122
- Name : "tls-ca-cert" ,
123
- Usage : "CA to verify remotes against" ,
124
- Value : "" ,
125
- },
126
- cli.StringFlag {
127
- EnvVar : "MACHINE_TLS_CA_KEY" ,
128
- Name : "tls-ca-key" ,
129
- Usage : "Private key to generate certificates" ,
130
- Value : "" ,
131
- },
132
- cli.StringFlag {
133
- EnvVar : "MACHINE_TLS_CLIENT_CERT" ,
134
- Name : "tls-client-cert" ,
135
- Usage : "Client cert to use for TLS" ,
136
- Value : "" ,
137
- },
138
- cli.StringFlag {
139
- EnvVar : "MACHINE_TLS_CLIENT_KEY" ,
140
- Name : "tls-client-key" ,
141
- Usage : "Private key used in client TLS auth" ,
142
- Value : "" ,
143
- },
144
106
cli.StringFlag {
145
107
EnvVar : "MACHINE_GITHUB_API_TOKEN" ,
146
108
Name : "github-api-token" ,
@@ -167,36 +129,8 @@ func main() {
167
129
168
130
func runDriver (driverName string ) {
169
131
switch driverName {
170
- case "amazonec2" :
171
- plugin .RegisterDriver (amazonec2 .NewDriver ("" , "" ))
172
- case "azure" :
173
- plugin .RegisterDriver (azure .NewDriver ("" , "" ))
174
- case "digitalocean" :
175
- plugin .RegisterDriver (digitalocean .NewDriver ("" , "" ))
176
- case "exoscale" :
177
- plugin .RegisterDriver (exoscale .NewDriver ("" , "" ))
178
- case "generic" :
179
- plugin .RegisterDriver (generic .NewDriver ("" , "" ))
180
- case "google" :
181
- plugin .RegisterDriver (google .NewDriver ("" , "" ))
182
- case "hyperv" :
183
- plugin .RegisterDriver (hyperv .NewDriver ("" , "" ))
184
- case "none" :
185
- plugin .RegisterDriver (none .NewDriver ("" , "" ))
186
- case "openstack" :
187
- plugin .RegisterDriver (openstack .NewDriver ("" , "" ))
188
- case "rackspace" :
189
- plugin .RegisterDriver (rackspace .NewDriver ("" , "" ))
190
- case "softlayer" :
191
- plugin .RegisterDriver (softlayer .NewDriver ("" , "" ))
192
132
case "virtualbox" :
193
133
plugin .RegisterDriver (virtualbox .NewDriver ("" , "" ))
194
- case "vmwarefusion" :
195
- plugin .RegisterDriver (vmwarefusion .NewDriver ("" , "" ))
196
- case "vmwarevcloudair" :
197
- plugin .RegisterDriver (vmwarevcloudair .NewDriver ("" , "" ))
198
- case "vmwarevsphere" :
199
- plugin .RegisterDriver (vmwarevsphere .NewDriver ("" , "" ))
200
134
default :
201
135
fmt .Fprintf (os .Stderr , "Unsupported driver: %s\n " , driverName )
202
136
os .Exit (1 )
0 commit comments