vagrant-turbo 0.0.1.pre-x86-mingw32 → 0.0.2.pre-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +202 -21
- data/NOTICE.txt +13 -0
- data/README.md +169 -19
- data/lib/vagrant-turbo/cap/windows/turbo_installed.rb +1 -2
- data/lib/vagrant-turbo/provisioner.rb +4 -0
- data/lib/vagrant-turbo/version.rb +1 -1
- data/locales/en.yml +2 -2
- data/vagrant-turbo.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66d0b83501b13ae947439b080479ee674b902730
|
|
4
|
+
data.tar.gz: 6da1162530286726b499592bd840a92780feee0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6de93c2ca729beed4d16ba4853261b81114f15075103f39b9f59a5afc23153787ef1ab292d3c15e6632f151b31f64a3690fc95c21be7e3559204f44cec50b17d
|
|
7
|
+
data.tar.gz: 379c9617a78469f6331a447f6635ee491b996b85b378a8e0c3e570e14ccefd3070bcd94039d63cbf3278747dd112619924e78811998a384722ce1f8699955031
|
data/LICENSE.txt
CHANGED
|
@@ -1,21 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2014 Code Systems, Inc.
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
data/NOTICE.txt
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2015 Code Systems, Inc.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
data/README.md
CHANGED
|
@@ -1,34 +1,180 @@
|
|
|
1
|
-
# Vagrant
|
|
1
|
+
# Vagrant Turbo Provisioner
|
|
2
|
+
Enable Vagrant to manage Turbo containers.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
The plugin supports a subset of features available in Turbo Console and Turbo Shell which are reasonable in provisioning a virtual machine:
|
|
5
|
+
* Install the latest version of the Turbo Plugin
|
|
6
|
+
* Login to the Turbo Hub
|
|
7
|
+
* Run a Turbo container
|
|
8
|
+
* Import an image from the local file system on guest machine
|
|
9
|
+
* Build an image using Turbo Shell
|
|
10
|
+
* Manage quota for remote shells
|
|
4
11
|
|
|
5
|
-
|
|
12
|
+
Remaining sections will explain how to install vagrant-turbo plugin on a host machine, configure the provisioner and setup development environment.
|
|
6
13
|
|
|
7
14
|
## Installation
|
|
15
|
+
* Install [Vagrant](vagrantup.com/downloads)
|
|
16
|
+
* Install [Virtual Box](https://www.virtualbox.org/)
|
|
8
17
|
|
|
9
|
-
|
|
18
|
+
> Author used Vagrant 1.7.4 and Virtual Box 4.3.34. At that time Vagrant didn't officially support Virtual Box 5.0.
|
|
19
|
+
|
|
20
|
+
* Run **vagrant plugin install vagrant-turbo** in command prompt to install the plugin.
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
> vagrant plugin install vagrant-turbo
|
|
24
|
+
Installing the 'vagrant-turbo' plugin. This can take a few minutes...
|
|
25
|
+
Installed the plugin 'vagrant-turbo (0.0.1.pre)'!
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Known issues
|
|
29
|
+
* `Vagrant could not detect VirtualBox!` - VirtualBox installer didn't add `C:\Program Files\Oracle\VirtualBox` to the system PATH environment variable, fix it manually.
|
|
30
|
+
|
|
31
|
+
## Configuration
|
|
32
|
+
|
|
33
|
+
All code listings presented in this document are modifications of `turbo` block from the Vagrantfile provided below.
|
|
34
|
+
The beginning and end of the file remain the same and were removed from code listings for better readability.
|
|
35
|
+
|
|
36
|
+
To get a complete Vagrantfile paste the code snippet into `turbo` block.
|
|
37
|
+
In the example below `turbo` block contains only a comment `TODO: Configure Vagrant Turbo Provisioner`.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
VAGRANTFILE_API_VERSION = "2"
|
|
41
|
+
BASE_BOX = "opentable/win-2012r2-standard-amd64-nocm"
|
|
42
|
+
|
|
43
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
44
|
+
config.vm.provider :virtualbox do |v|
|
|
45
|
+
v.gui = true
|
|
46
|
+
v.memory = 4096
|
|
47
|
+
end
|
|
48
|
+
config.vm.box = BASE_BOX
|
|
49
|
+
config.vm.communicator = :winrm
|
|
50
|
+
config.vm.guest = :windows
|
|
51
|
+
config.vm.network :forwarded_port, host: 33389, guest: 3389, id: "rdp", auto_correct: true
|
|
52
|
+
|
|
53
|
+
config.vm.provision :turbo do |turbo|
|
|
54
|
+
# TODO: Configure Vagrant Turbo Provisioner
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Install the latest version of Turbo Plugin
|
|
60
|
+
Turbo provisioner always checks whether turbo is installed on guest machine and installs the latest Turbo Plugin release if the tool was not found.
|
|
61
|
+
|
|
62
|
+
### Login
|
|
63
|
+
Operations on containers require login to the Turbo Hub. Provisioner will perform this task if username and password are defined in the login block.
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
turbo.login :b do |b|
|
|
67
|
+
b.username = "username"
|
|
68
|
+
b.password = "password"
|
|
69
|
+
end
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Run a Turbo container
|
|
73
|
+
Provisioner will run a container according to configuration defined in run block.
|
|
74
|
+
Vagrantfile must be compliant with Ruby language syntax, so original `turbo run` parameters were renamed according to rules below:
|
|
75
|
+
* quote paramter values
|
|
76
|
+
* use lists `[]` to provide multiple values
|
|
77
|
+
* assign `true` to no argument switches
|
|
78
|
+
* strip prefix `--`
|
|
79
|
+
* replace hyphen `-` by underscore `_`
|
|
80
|
+
* don't use aliases
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
turbo.run :r do |r|
|
|
84
|
+
r.images = ["clean"]
|
|
85
|
+
r.using = ["chocolatey/chocolatey","microsoft/powershell"]
|
|
86
|
+
r.name = "chocolatey-pre"
|
|
87
|
+
r.disable_sync = true
|
|
88
|
+
r.attach = true
|
|
89
|
+
r.inline = "choco install chocolatey -pre -yes"
|
|
90
|
+
end
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
`turbo run` parameters were explained in the [reference document](https://turbo.net/docs/reference#run).
|
|
94
|
+
|
|
95
|
+
Vagrant extension offers extra arguments which simplify execution of bat and PowerShell scripts inside a container.
|
|
96
|
+
|
|
97
|
+
To execute a single statement in the container console pass it using `inline` argument.
|
|
10
98
|
|
|
11
|
-
```ruby
|
|
12
|
-
gem 'vagrant-turbo'
|
|
13
99
|
```
|
|
100
|
+
turbo.run :r do |r|
|
|
101
|
+
r.images = ["clean"]
|
|
102
|
+
r.temp = true
|
|
103
|
+
r.disable_sync = true
|
|
104
|
+
r.attach = true
|
|
105
|
+
r.inline = "ECHO Turbo.net"
|
|
106
|
+
end
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
To execute a bat or PowerShell script set `path` to the script file on host machine. To run PowerShell scripts the interpreter must be available inside the container. If PowerShell is not available by default add `microsoft/powershell` to the list of images or temporary dependencies.
|
|
14
110
|
|
|
15
|
-
|
|
111
|
+
`powershell_args` can be used to pass extra parameters to PowerShell interpreter. Provisioner by default adds `-ExecutionPolicy Bypass` and `-OutputFormat Text` unless other values were set in `powershell_args` for these parameters.
|
|
16
112
|
|
|
17
|
-
|
|
113
|
+
```
|
|
114
|
+
turbo.run :r do |r|
|
|
115
|
+
r.images = ["clean"]
|
|
116
|
+
r.using = ["microsoft/powershell"]
|
|
117
|
+
r.temp = true
|
|
118
|
+
r.disable_sync = true
|
|
119
|
+
r.attach = true
|
|
120
|
+
r.path = "C:\\sources\\script.ps1"
|
|
121
|
+
r.powershell_args = "-OutputFormat XML"
|
|
122
|
+
end
|
|
123
|
+
```
|
|
18
124
|
|
|
19
|
-
|
|
125
|
+
Using `path`, `inline`, `startup_file` parameters together in one run block is currently not supported.
|
|
20
126
|
|
|
21
|
-
|
|
127
|
+
### Manage quota for remote shells
|
|
128
|
+
Vagrant executes provisioning using Windows Remote Management (WinRM).
|
|
129
|
+
This environment is restricted by a set of quotas including maximum amount of memory allocated per shell.
|
|
130
|
+
For more information about quota management for remote shell refer to [MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/ee309367(v=vs.85).aspx) article.
|
|
131
|
+
We recommend to keep the default value of 1024MB for MaxMemoryPerShellMB quota. If your application requires more virtual memory you can change the setting yourself in operating system or configure the provisioner to do so, unless the quota is protected by a Group Policy.
|
|
22
132
|
|
|
23
|
-
|
|
133
|
+
```
|
|
134
|
+
turbo.max_memory_per_shell = 2048
|
|
135
|
+
```
|
|
24
136
|
|
|
25
|
-
|
|
137
|
+
If the provisioning failed because of System.StackOverFlowException or System.OutOfMemoryException we recommend to increase MaxMemoryPerShellMB quota.
|
|
26
138
|
|
|
27
139
|
## Development
|
|
28
140
|
|
|
29
|
-
|
|
141
|
+
### Setup
|
|
142
|
+
* Install [Ruby 2.0](http://railsinstaller.org/en) or above
|
|
143
|
+
* Install [RubyGems 2.5](https://rubygems.org/pages/download#formats) or above
|
|
144
|
+
* Confirm that previous steps ran correctly
|
|
145
|
+
* Install Gems: Bundler and Rake
|
|
146
|
+
```
|
|
147
|
+
> ruby --version
|
|
148
|
+
> gem --version
|
|
149
|
+
> gem install bundler
|
|
150
|
+
> bundle --version
|
|
151
|
+
> gem install rake
|
|
152
|
+
```
|
|
30
153
|
|
|
31
|
-
|
|
154
|
+
### TL;DR
|
|
155
|
+
Install plugin dependencies
|
|
156
|
+
```
|
|
157
|
+
bundle
|
|
158
|
+
```
|
|
159
|
+
Create Gem package
|
|
160
|
+
```
|
|
161
|
+
gem build vagrant-turbo.gemspec
|
|
162
|
+
```
|
|
163
|
+
Run Vagrant command using local build of the plugin
|
|
164
|
+
```
|
|
165
|
+
bundle exec <Vagrant command>
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Release
|
|
169
|
+
Update the version number in `version.rb`
|
|
170
|
+
Run `rake release`
|
|
171
|
+
|
|
172
|
+
The program should ask for GitHub credentials to create a Git tag for the version, push local Git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
173
|
+
|
|
174
|
+
If you release the plugin for the first time push to rubygems.org may fail because of missing credentials. In that case push the Gem manually.
|
|
175
|
+
```
|
|
176
|
+
gem push .\pkg\vagrant-turbo-<version>.gem
|
|
177
|
+
```
|
|
32
178
|
|
|
33
179
|
Build locally
|
|
34
180
|
```
|
|
@@ -40,11 +186,15 @@ Run local build in Vagrant context
|
|
|
40
186
|
bundle exec <vagrant command>
|
|
41
187
|
```
|
|
42
188
|
|
|
43
|
-
## Contributing
|
|
44
|
-
|
|
45
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/vagrant-turbo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
|
46
|
-
|
|
47
189
|
## License
|
|
190
|
+
| | |
|
|
191
|
+
|:---------------------|:-----------------------------------------|
|
|
192
|
+
| **Author:** | Turbo.net (<support@turbo.net>)
|
|
193
|
+
| **Copyright:** | Copyright (c) 2015 Turbo.net
|
|
194
|
+
| **License:** | Apache License, Version 2.0
|
|
195
|
+
|
|
196
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
|
48
197
|
|
|
49
|
-
|
|
198
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
50
199
|
|
|
200
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
@@ -4,8 +4,7 @@ module VagrantPlugins
|
|
|
4
4
|
module Windows
|
|
5
5
|
module TurboInstalled
|
|
6
6
|
def self.turbo_installed(machine)
|
|
7
|
-
|
|
8
|
-
machine.communicate.test(command, sudo: true)
|
|
7
|
+
machine.communicate.test('turbo version', sudo: true)
|
|
9
8
|
end
|
|
10
9
|
end
|
|
11
10
|
end
|
data/locales/en.yml
CHANGED
|
@@ -13,7 +13,7 @@ en:
|
|
|
13
13
|
check_install: "Checking Turbo installation..."
|
|
14
14
|
already_installed: "Turbo is installed on this machine. Skipping installation..."
|
|
15
15
|
not_installed: "Turbo is not installed on this machine. Installing..."
|
|
16
|
-
install_failed: "
|
|
16
|
+
install_failed: "Something went terribly wrong. Turbo installation failed. Login to the guest machine and install it manually."
|
|
17
17
|
|
|
18
18
|
no_images_to_run: "No images specified to run in the container"
|
|
19
19
|
|
|
@@ -24,7 +24,7 @@ en:
|
|
|
24
24
|
running: "Running %{script}..."
|
|
25
25
|
invalid_parameter: "Unknown `%{param}` value. Use one of valid values: %{values}"
|
|
26
26
|
startup_file_with_path_or_inline: "Startup file cannot be set if path or inline are used"
|
|
27
|
-
check_quota: "Checking %{quota_name} quota"
|
|
27
|
+
check_quota: "Checking %{quota_name} quota..."
|
|
28
28
|
quota_protected_by_group_policy_increase_info: "Quota is protected by Group Policy and must be changed manually. For more information visit https://msdn.microsoft.com/en-us/library/windows/desktop/ee309367(v=vs.85).aspx"
|
|
29
29
|
small_quota_warning: "Small quota may cause provisioning failure with`System.OutOfMemoryException` or `System.StackOverflowException`"
|
|
30
30
|
quota_below_recommended_limit: "%{quota_name} is below the recommended threshold of %{recommended_limit}MB (current value: %{quota_limit}MB)."
|
data/vagrant-turbo.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
|
|
|
11
11
|
s.summary = 'Enables Vagrant to manage Turbo containers'
|
|
12
12
|
s.description = 'Enables Vagrant to manage Turbo containers'
|
|
13
13
|
s.homepage = 'https://github.com/turboapps/vagrant'
|
|
14
|
-
s.license = '
|
|
14
|
+
s.license = 'Apache License, Version 2.0'
|
|
15
15
|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-turbo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2.pre
|
|
5
5
|
platform: x86-mingw32
|
|
6
6
|
authors:
|
|
7
7
|
- Turbo.net
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -62,6 +62,7 @@ files:
|
|
|
62
62
|
- ".rspec"
|
|
63
63
|
- Gemfile
|
|
64
64
|
- LICENSE.txt
|
|
65
|
+
- NOTICE.txt
|
|
65
66
|
- README.md
|
|
66
67
|
- Rakefile
|
|
67
68
|
- lib/vagrant-turbo.rb
|
|
@@ -80,7 +81,7 @@ files:
|
|
|
80
81
|
- vagrant-turbo.gemspec
|
|
81
82
|
homepage: https://github.com/turboapps/vagrant
|
|
82
83
|
licenses:
|
|
83
|
-
-
|
|
84
|
+
- Apache License, Version 2.0
|
|
84
85
|
metadata: {}
|
|
85
86
|
post_install_message:
|
|
86
87
|
rdoc_options: []
|