vagrant-turbo 0.0.2.pre-x86-mingw32 → 0.0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66d0b83501b13ae947439b080479ee674b902730
4
- data.tar.gz: 6da1162530286726b499592bd840a92780feee0b
3
+ metadata.gz: 5acb33cd180c2827f9f14a67e265bf01ee3b1934
4
+ data.tar.gz: 85fde364b4eccfafd901b45044fde13439b7390a
5
5
  SHA512:
6
- metadata.gz: 6de93c2ca729beed4d16ba4853261b81114f15075103f39b9f59a5afc23153787ef1ab292d3c15e6632f151b31f64a3690fc95c21be7e3559204f44cec50b17d
7
- data.tar.gz: 379c9617a78469f6331a447f6635ee491b996b85b378a8e0c3e570e14ccefd3070bcd94039d63cbf3278747dd112619924e78811998a384722ce1f8699955031
6
+ metadata.gz: 4104aa67a9236368bb0bb536a1f19985959b3f515583e6a86318c1fe0c0b97d06f3a81ede56933f12dbed53709b665a8ebdbb3e4ab83e375e80a61168afda3d9
7
+ data.tar.gz: 272e0f4f21a5c40c1dade209f41d3ab4ae2061a371c7806aaebbdbef3f2e772f771169046c35cea1de87e5e6383e84bba69e7b686eaaa5693105dc1730b56399
data/README.md CHANGED
@@ -5,7 +5,7 @@ The plugin supports a subset of features available in Turbo Console and Turbo Sh
5
5
  * Install the latest version of the Turbo Plugin
6
6
  * Login to the Turbo Hub
7
7
  * Run a Turbo container
8
- * Import an image from the local file system on guest machine
8
+ * Add an image to the local repository
9
9
  * Build an image using Turbo Shell
10
10
  * Manage quota for remote shells
11
11
 
@@ -90,7 +90,7 @@ turbo.run :r do |r|
90
90
  end
91
91
  ```
92
92
 
93
- `turbo run` parameters were explained in the [reference document](https://turbo.net/docs/reference#run).
93
+ `turbo run` parameters were explained in the [reference](https://turbo.net/docs/reference#run).
94
94
 
95
95
  Vagrant extension offers extra arguments which simplify execution of bat and PowerShell scripts inside a container.
96
96
 
@@ -124,6 +124,50 @@ end
124
124
 
125
125
  Using `path`, `inline`, `startup_file` parameters together in one run block is currently not supported.
126
126
 
127
+ ### Add an image to the local repository
128
+ Define import block to build an image from the specified file on guest machine and add it to the local repository.
129
+ Supported file formats include exe, msi and svm.
130
+
131
+ ```
132
+ turbo.import :i do |i|
133
+ i.name = "chocolatey/chocolatey"
134
+ i.path = "C:\\vagrant\\chocolatey.svm"
135
+ i.overwrite = true
136
+ i.format = "svm"
137
+ end
138
+ ```
139
+
140
+ Detailed specification of turbo import is described in [reference](https://turbo.net/docs/reference/command-line#import).
141
+
142
+ ### Build an image using Turbo Shell
143
+ shell block allows to specify Turbo Shell instructions which should be executed in provisioning.
144
+ Instructions can be defined in TurboScript or passed inline.
145
+
146
+ ```
147
+ turbo.shell :s do |s|
148
+ s.path = "C:\\sources\\turbo.me"
149
+ end
150
+ ```
151
+
152
+ TurboScript file should be available on host machine.
153
+
154
+ ```
155
+ turbo.shell :s do |s|
156
+ s.inline = <<-EOS
157
+ layer clean
158
+ using wget
159
+ setworkdir C:\\
160
+ cmd wget.exe http://downloads.sourceforge.net/sevenzip/7z920.exe
161
+ env path="@PROGRAMFILESX86@\\7-zip"
162
+ startup file ("@PROGRAMFILESX86@\\7-zip\\7zFM.exe")
163
+ cmd del C:\\7z920.exe /Q
164
+ commit --no-base --overwrite 7zip
165
+ EOS
166
+ end
167
+ ```
168
+
169
+ Check [TurboScript reference](https://turbo.net/docs/reference/turboscript) to get the complete list of available commands.
170
+
127
171
  ### Manage quota for remote shells
128
172
  Vagrant executes provisioning using Windows Remote Management (WinRM).
129
173
  This environment is restricted by a set of quotas including maximum amount of memory allocated per shell.
@@ -137,6 +137,7 @@ module VagrantPlugins
137
137
  end
138
138
 
139
139
  def validate(_machine)
140
+ {'turbo import' => []}
140
141
  end
141
142
 
142
143
  def finalize!
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Turbo
3
- VERSION = '0.0.2.pre'
3
+ VERSION = '0.0.3.pre'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-turbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre
4
+ version: 0.0.3.pre
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Turbo.net