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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '087e6dcc9c74956c0027ff03dd34c4af25c7231c9971645a996217a20d6e0427'
4
- data.tar.gz: 05cf05f190cb7d0edc2a6aee76858bfbdf8097565b4ab647543d1e0494040b55
3
+ metadata.gz: a31263b59896f12b5a39e56d2cfd21bac58f2d5c9b4982778ece82fcb089dc7d
4
+ data.tar.gz: dbe2e4d8af9cf2669aa96f9dea272bc300560fd9316927e55555034d7f0c699b
5
5
  SHA512:
6
- metadata.gz: 5aceca7e964bd894c2dd02fd77ac61bb158d36292c9deaa303b6e84cb02fa662fbaae44bd5874f3412c037932413eb362c9e76f2cfb69f0c09a8efa2f688f977
7
- data.tar.gz: 740c612f6ce6e7523b169a2b3567ee047bec61eb008132e891b294fe9713d22c9862d2f24a93a9e3a1019c342f5bd7fe504dd200ededf32a817b5a9f71a633ac
6
+ metadata.gz: 9946aae3ad5aef10ad0cacf9dad0429bcb671869adab219800aa4d5a1983898c85857af87638332dfbef54e361c537e009fb7f427d3cc4990be3ae0771a9be71
7
+ data.tar.gz: f2a52c1f667fb7537507de7cc22647f08aee8fa6d57255112de0d114f14d36faf8bb274f67eae7bdb23dc22b205ccaf20166af9d5f0bcf27f7f4190601106dbb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wocker (0.2.2)
4
+ wocker (0.2.3)
5
5
  clamp
6
6
 
7
7
  GEM
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
- Wockerfile:
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"
@@ -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")
@@ -1,3 +1,3 @@
1
1
  module Wocker
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -49,5 +49,7 @@ Vagrant.configure("2") do |config|
49
49
  <% end %>
50
50
  <% end %>
51
51
 
52
- config.vm.provision :reload
52
+ <% if @wocker_restart %>
53
+ config.vm.provision :reload
54
+ <% end %>
53
55
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula