vagrant-saltdeps 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGLOG.md +12 -0
- data/lib/vagrant-saltdeps/errors.rb +12 -0
- data/lib/vagrant-saltdeps/provisioner.rb +7 -3
- data/lib/vagrant-saltdeps/version.rb +1 -1
- data/lib/vagrant-saltdeps.rb +2 -2
- data/locales/en.yml +15 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a084e08cb862e706875409f3a247fd55b6145f61
|
4
|
+
data.tar.gz: 1fd41fb43515be16d54a97296d884ee5bd0dae47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: add517692243b15c96a32e829ab2bb3c055233378f442edea940ebb3dd7c8b69d244b8dd869ac46bb959f7196027c518e8a9da6f479e3e16d07af9f22aee733f
|
7
|
+
data.tar.gz: e92e89b63f028237bfa101fd0d431b1a5f52629b3a68b2531f889f76d33b88515f15f82fdd5a59248a46910101372a169f05d1be050a97df0ef4b83a434663fb
|
data/.gitignore
CHANGED
data/CHANGLOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## 1.0.4 (2015-04-03)
|
2
|
+
|
3
|
+
ErrorHandling:
|
4
|
+
|
5
|
+
- exit on error if the branch defined in saltdeps.yml does not exist in the repository.
|
6
|
+
|
7
|
+
## 1.0.3 (2015-04-03)
|
8
|
+
|
9
|
+
Bugfixes:
|
10
|
+
|
11
|
+
- when a branch is defined for a repository in saltdeps.yml, do a checkout of the remote branch.
|
12
|
+
|
1
13
|
## 1.0.2 (2015-03-31)
|
2
14
|
|
3
15
|
Bugfixes:
|
@@ -3,7 +3,7 @@ require 'vagrant'
|
|
3
3
|
require 'git'
|
4
4
|
require 'fileutils'
|
5
5
|
require "log4r"
|
6
|
-
|
6
|
+
require_relative 'errors'
|
7
7
|
|
8
8
|
module VagrantPlugins
|
9
9
|
module Saltdeps
|
@@ -40,8 +40,12 @@ module VagrantPlugins
|
|
40
40
|
else
|
41
41
|
g = Git.clone(uri, name, path: @checkout_path)
|
42
42
|
end
|
43
|
-
|
44
|
-
|
43
|
+
begin
|
44
|
+
g.checkout(branch)
|
45
|
+
g.pull
|
46
|
+
rescue Git::GitExecuteError => e
|
47
|
+
raise GitCheckoutError.new :branch => branch, :message => e.message
|
48
|
+
end
|
45
49
|
end
|
46
50
|
end
|
47
51
|
|
data/lib/vagrant-saltdeps.rb
CHANGED
data/locales/en.yml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
en:
|
2
|
+
vagrant:
|
3
|
+
errors:
|
4
|
+
git_checkout_error: |-
|
5
|
+
Saltdeps experienced a git error checking out branch '%{branch}'.
|
6
|
+
Are you sure that branch defined in saltdeps.yml exists in the repository?
|
7
|
+
|
8
|
+
git returned:
|
9
|
+
|
10
|
+
%{message}
|
11
|
+
|
12
|
+
unknown_error: |-
|
13
|
+
Saldeps experienced an unknown error. The message was:
|
14
|
+
|
15
|
+
%{message}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-saltdeps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joseph Hughes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -83,9 +83,11 @@ files:
|
|
83
83
|
- Rakefile
|
84
84
|
- lib/vagrant-saltdeps.rb
|
85
85
|
- lib/vagrant-saltdeps/config.rb
|
86
|
+
- lib/vagrant-saltdeps/errors.rb
|
86
87
|
- lib/vagrant-saltdeps/plugin.rb
|
87
88
|
- lib/vagrant-saltdeps/provisioner.rb
|
88
89
|
- lib/vagrant-saltdeps/version.rb
|
90
|
+
- locales/en.yml
|
89
91
|
- vagrant-saltdeps.gemspec
|
90
92
|
homepage: https://github.com/joshughes/vagrant-Saltdeps
|
91
93
|
licenses:
|