vagrant-rightscaleshim 1.0.1 → 1.0.2
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.
- data/README.md +1 -0
- data/lib/vagrant-rightscaleshim.rb +1 -0
- data/lib/vagrant-rightscaleshim/config.rb +7 -2
- data/locales/en.yml +3 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
20
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
21
|
|
22
|
+
require 'i18n'
|
22
23
|
require 'vagrant-rightscaleshim/plugin'
|
23
24
|
require 'vagrant-rightscaleshim/action/cleanup'
|
24
25
|
require 'vagrant-rightscaleshim/action/config_chef_solo'
|
@@ -42,15 +42,20 @@ module VagrantPlugins
|
|
42
42
|
|
43
43
|
# TODO: Better error handling, verify shim dir and runlist dir exist, catch json errors when parsing runlists
|
44
44
|
def validate(machine)
|
45
|
+
misconfigured = false
|
45
46
|
errors = _detected_errors
|
46
47
|
if !machine.config.rightscaleshim.shim_dir || machine.config.rightscaleshim.shim_dir.empty?
|
47
|
-
|
48
|
+
machine.ui.warn(I18n.t("vagrant.config.rightscaleshim.shim_dir_missing"))
|
49
|
+
misconfigured = true
|
48
50
|
end
|
49
51
|
|
50
52
|
if !machine.config.rightscaleshim.run_list_dir || machine.config.rightscaleshim.run_list_dir.empty?
|
51
|
-
|
53
|
+
machine.ui.warn(I18n.t("vagrant.config.rightscaleshim.run_list_dir_missing"))
|
54
|
+
misconfigured
|
52
55
|
end
|
53
56
|
|
57
|
+
machine.ui.warn(I18n.t("vagrant.config.rightscaleshim.misconfigured"))
|
58
|
+
|
54
59
|
{'rightscaleshim' => errors}
|
55
60
|
end
|
56
61
|
|
data/locales/en.yml
CHANGED
@@ -2,5 +2,6 @@ en:
|
|
2
2
|
vagrant:
|
3
3
|
config:
|
4
4
|
rightscaleshim:
|
5
|
-
shim_dir_missing: "
|
6
|
-
run_list_dir_missing: "
|
5
|
+
shim_dir_missing: "vagrant-rightscaleshim misconfigured shim_dir is required"
|
6
|
+
run_list_dir_missing: "vagrant-rightscaleshim misconfigured run_list_dir required"
|
7
|
+
misconfigured: "vagrant-rightscaleshim is missing one or more properties. If you're not using vagrant-rightscaleshim you can ignore this message"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-rightscaleshim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Allows RightScale ServerTemplate development to be performed primarily
|
15
15
|
within Vagrant
|
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
43
43
|
version: '0'
|
44
44
|
segments:
|
45
45
|
- 0
|
46
|
-
hash:
|
46
|
+
hash: 1144020493048262327
|
47
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
48
|
none: false
|
49
49
|
requirements:
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
52
|
version: '0'
|
53
53
|
segments:
|
54
54
|
- 0
|
55
|
-
hash:
|
55
|
+
hash: 1144020493048262327
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
58
|
rubygems_version: 1.8.25
|