vagrant-converge 0.2.0 → 0.3.0

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: 1c87aea02338ea71e07d51609cf47aad43bf7375
4
- data.tar.gz: 17e61438fbcc0a5891c6ef316226a3c3df5185aa
3
+ metadata.gz: 0791e9918556cb99c21678dc8d5f08cf0bde128e
4
+ data.tar.gz: 824f759ab8c2cfe8fb2c64a96219797ac8b1a47c
5
5
  SHA512:
6
- metadata.gz: 0638c82ad9cca56b97a7c4c5a1d738cba09e882479b170bac3210ffd5992d4b573a11cfa09093849e81481983e5055dcbc850eb80e10e1468e81d9ebf311f3f6
7
- data.tar.gz: 784730e194f104cdcddf790449580ac209a45148912fb9e212778fc98668f9dfde0e5f1d90feb27065d9314bdd9426b8285b6e289da7cec7c7252ce678d7f522
6
+ metadata.gz: 4a54988de6a3be5df4dd7e5ea59484162af4b12fa7c160d897e4ec4f768695d0b206a7579c48efee49fcabbb02d64af440fcf522f4774b8ec307cef25d3eb112
7
+ data.tar.gz: e669531fa5d948cd9295b065d4a0bd567eaf13fc2db72e4b5eb9cbe56d112966247ebfb647eecbf7671a66a966ea03e4227ed9ee03fa45650597976a52412e2a
data/README.md CHANGED
@@ -18,7 +18,7 @@ Update the plugin with:
18
18
 
19
19
  ## Options
20
20
 
21
- * `bikeshed` (required) - A list of files to run through Converge. Can be a single path as a string
21
+ * `hcl` (required) - A list of files to run through Converge. Can be a single path as a string
22
22
  * `ca_file` (optional) - Path to a CA certificate to trust. Requires `use_ssl`
23
23
  * `cert_file` (optional) - Path to a certificate file for SSL. Requires `use_ssl`
24
24
  * `key_file` (optional) - Path to a key file for SSL. Requires `use_ssl`
@@ -2,7 +2,7 @@ module VagrantConverge
2
2
  module Config
3
3
  class Guest < Vagrant.plugin("2", :config)
4
4
 
5
- attr_accessor :bikeshed
5
+ attr_accessor :hcl
6
6
  attr_accessor :ca_file
7
7
  attr_accessor :cert_file
8
8
  attr_accessor :install
@@ -22,7 +22,7 @@ module VagrantConverge
22
22
  def initialize
23
23
  super
24
24
 
25
- @bikeshed = UNSET_VALUE
25
+ @hcl = UNSET_VALUE
26
26
  @ca_file = UNSET_VALUE
27
27
  @cert_file = UNSET_VALUE
28
28
  @install = UNSET_VALUE
@@ -41,7 +41,7 @@ module VagrantConverge
41
41
  end
42
42
 
43
43
  def finalize!
44
- @bikeshed = nil if @bikeshed == UNSET_VALUE
44
+ @hcl = nil if @hcl == UNSET_VALUE
45
45
  @ca_file = nil if @ca_file == UNSET_VALUE
46
46
  @cert_file = nil if @cert_file == UNSET_VALUE
47
47
  @install = true if @install == UNSET_VALUE
@@ -68,22 +68,22 @@ module VagrantConverge
68
68
  def validate(machine)
69
69
  @errors = _detected_errors
70
70
 
71
- # Validate bikeshed values
72
- if !bikeshed
73
- @errors << I18n.t("vagrant.provisioners.converge.no_bikeshed")
71
+ # Validate hcl values
72
+ if !hcl
73
+ @errors << I18n.t("vagrant.provisioners.converge.no_hcl")
74
74
  end
75
75
 
76
- if bikeshed
77
- bikeshed_is_valid = bikeshed.kind_of?(Array) || bikeshed.kind_of?(String)
76
+ if hcl
77
+ hcl_is_valid = hcl.kind_of?(Array) || hcl.kind_of?(String)
78
78
 
79
- if bikeshed.kind_of?(String)
80
- @bikeshed = [ bikeshed ]
79
+ if hcl.kind_of?(String)
80
+ @hcl = [ hcl ]
81
81
  end
82
82
 
83
- if !bikeshed_is_valid
84
- @errors << I18n.t("vagrant.provisioners.converge.invalid_bikeshed",
85
- type: bikeshed.class.to_s,
86
- value: bikeshed.to_s)
83
+ if !hcl_is_valid
84
+ @errors << I18n.t("vagrant.provisioners.converge.invalid_hcl",
85
+ type: hcl.class.to_s,
86
+ value: hcl.to_s)
87
87
  end
88
88
  end
89
89
 
@@ -82,7 +82,7 @@ module VagrantConverge
82
82
  shell_command << "--key-file='" + config.key_file + "'" if config.key_file
83
83
  end
84
84
 
85
- config.bikeshed.each do |arg|
85
+ config.hcl.each do |arg|
86
86
  shell_command << arg
87
87
  end
88
88
 
@@ -1,3 +1,3 @@
1
1
  module VagrantConverge
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -13,10 +13,10 @@ en:
13
13
  Converge not found on guest
14
14
  converge_command_failed: |-
15
15
  Converge execution failed
16
- invalid_bikeshed: |-
17
- `bikeshed` must be an array or a path to an existing file. Received: %{value} (as %{type})
16
+ invalid_hcl: |-
17
+ `hcl` must be an array or a path to an existing file. Received: %{value} (as %{type})
18
18
  invalid_params: |-
19
19
  `params` must be a hash of param/value pairs. Recevied: %{value} (as %{type})
20
- no_bikeshed: |-
21
- No value provided for bikeshed
20
+ no_hcl: |-
21
+ No value provided for hcl
22
22
  running: Running converge...
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-converge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Aubuchon