wocker 0.2.2 → 0.2.3
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/Gemfile.lock +1 -1
- data/README.md +4 -18
- data/lib/wocker/cli/build_command.rb +2 -1
- data/lib/wocker/vagrantfile.rb +2 -0
- data/lib/wocker/version.rb +1 -1
- data/templates/Vagrantfile +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a31263b59896f12b5a39e56d2cfd21bac58f2d5c9b4982778ece82fcb089dc7d
|
|
4
|
+
data.tar.gz: dbe2e4d8af9cf2669aa96f9dea272bc300560fd9316927e55555034d7f0c699b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9946aae3ad5aef10ad0cacf9dad0429bcb671869adab219800aa4d5a1983898c85857af87638332dfbef54e361c537e009fb7f427d3cc4990be3ae0771a9be71
|
|
7
|
+
data.tar.gz: f2a52c1f667fb7537507de7cc22647f08aee8fa6d57255112de0d114f14d36faf8bb274f67eae7bdb23dc22b205ccaf20166af9d5f0bcf27f7f4190601106dbb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -14,22 +14,8 @@ mas "Microsoft Remote Desktop", id: 1295203466
|
|
|
14
14
|
brew bundle
|
|
15
15
|
|
|
16
16
|
vagrant plugin install vagrant-reload
|
|
17
|
+
gem install wocker
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
from: StefanScherer/windows_2019
|
|
22
|
-
|
|
23
|
-
runs:
|
|
24
|
-
- path: install-chocolatey.ps1
|
|
25
|
-
- inline: choco install -y ruby
|
|
26
|
-
- inline: choco install -y nircmd
|
|
27
|
-
ports:
|
|
28
|
-
- 9516:5555
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
wocker build --interface "en0: Wi-Fi (Wireless)"
|
|
32
|
-
wocker exec -- gem install delirium-driver
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
gem install wocker
|
|
19
|
+
wocker init
|
|
20
|
+
wocker build --choco --interface "en0: Wi-Fi (Wireless)"
|
|
21
|
+
wocker exec -- gem install delirium-driver
|
|
@@ -5,9 +5,10 @@ module Wocker
|
|
|
5
5
|
class BuildCommand < Clamp::Command
|
|
6
6
|
option "--interface", "INTERFACE", "network interface"
|
|
7
7
|
option "--choco", :flag, "install chocolatey"
|
|
8
|
+
option "--restart", :flag, "restart after build"
|
|
8
9
|
|
|
9
10
|
def execute
|
|
10
|
-
v = Wocker::Vagrantfile.new interface: interface, choco: choco?
|
|
11
|
+
v = Wocker::Vagrantfile.new interface: interface, choco: choco?, restart: restart?
|
|
11
12
|
v.create_from_wockerfile!
|
|
12
13
|
|
|
13
14
|
Wocker::Vagrant.run "destroy", "-f"
|
data/lib/wocker/vagrantfile.rb
CHANGED
|
@@ -5,6 +5,7 @@ module Wocker
|
|
|
5
5
|
def initialize(interface: nil, choco: false)
|
|
6
6
|
@interface = interface
|
|
7
7
|
@choco = choco
|
|
8
|
+
@restart = restart
|
|
8
9
|
end
|
|
9
10
|
|
|
10
11
|
def create_from_wockerfile! *args
|
|
@@ -14,6 +15,7 @@ module Wocker
|
|
|
14
15
|
v.wocker_ports = Wockerfile.ports
|
|
15
16
|
v.wocker_interface = @interface
|
|
16
17
|
v.wocker_installs = []
|
|
18
|
+
v.wocker_restart = @restart
|
|
17
19
|
|
|
18
20
|
if @choco
|
|
19
21
|
v.wocker_installs << File.join(Wocker.gem_root_path, "scripts", "wocker-install-chocolatey.ps1")
|
data/lib/wocker/version.rb
CHANGED
data/templates/Vagrantfile
CHANGED