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 CHANGED
@@ -13,6 +13,7 @@ Install the Vagrant RightScale Shim plugin
13
13
  ## Usage
14
14
 
15
15
  You can setup your vagrantfile thusly
16
+
16
17
  Vagrant.configure("2") do |config|
17
18
  config.vm.hostname = "centos"
18
19
 
@@ -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
- errors << I18.t("vagrant.config.rightscaleshim.shim_dir_missing")
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
- errors << I18n.t("vagrant.config.rightscaleshim.run_list_dir_missing")
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
 
@@ -2,5 +2,6 @@ en:
2
2
  vagrant:
3
3
  config:
4
4
  rightscaleshim:
5
- shim_dir_missing: "Must specify a directory where vagrant-rightscaleshim will use for runtime persistence for the VM"
6
- run_list_dir_missing: "Must specify a directory where chef solo json config files (used as runlists) can be found for the VM"
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.1
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: 2013-07-17 00:00:00.000000000 Z
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: -4280424848759565613
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: -4280424848759565613
55
+ hash: 1144020493048262327
56
56
  requirements: []
57
57
  rubyforge_project:
58
58
  rubygems_version: 1.8.25