vagrant-git 0.1.4 → 0.1.6
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 +4 -4
- data/README.md +3 -3
- data/example-box/Vagrantfile +13 -5
- data/lib/vagrant-git/action.rb +2 -2
- data/lib/vagrant-git/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d72346fc8bb90343e3daf622adf254030c5a522
|
4
|
+
data.tar.gz: 946fc977cc5d8ad07f16d748594b491c85ed9a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da56d198075d36515b810ea1835478be0dc054c749cf25b451ab684cca940ca2a2c28676c19923a9e3e24f69fe5495ef69958d05544004552b2bd4c660720bbd
|
7
|
+
data.tar.gz: c1b7d32700a7dae757221981762223ef827a7e484889d29507f43bc32f4a67ed6a63338f6d3e366c1c86c33d948c9b57cc3e7721035b611288b3c1f7607c8caa
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ See **building** below for building the gem.
|
|
24
24
|
Use `vagrant plugin` to install the gem in your Vagrant environment:
|
25
25
|
|
26
26
|
```bash
|
27
|
-
$ vagrant plugin install vagrant-git
|
27
|
+
$ vagrant plugin install vagrant-git
|
28
28
|
```
|
29
29
|
|
30
30
|
## Configuration
|
@@ -40,12 +40,12 @@ The following properties are optional (but not yet supported):
|
|
40
40
|
|
41
41
|
* **branch**: Which branch to check out / pull
|
42
42
|
* **clone_in_host**: *boolean*: true to execute git commands in the host, false to execute them in the guest. NOT YET SUPPORTED for false.
|
43
|
-
* **
|
43
|
+
* **sync_on_load**: whether to do a fetch & pull when starting up the VM
|
44
44
|
* **set_upstream**: a different remote URL to set the upstream origin to after cloning the repository
|
45
45
|
|
46
46
|
## Building
|
47
47
|
|
48
48
|
```bash
|
49
49
|
$ bundle install
|
50
|
-
$ gem build vagrant-
|
50
|
+
$ gem build vagrant-git.gemspec
|
51
51
|
```
|
data/example-box/Vagrantfile
CHANGED
@@ -1,8 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
5
|
+
VAGRANTFILE_API_VERSION = "2"
|
6
|
+
|
7
|
+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
8
|
+
config.vm.box = "hashicorp/precise64"
|
9
|
+
config.vm.network "private_network", ip: "192.168.66.10"
|
10
|
+
|
11
|
+
config.vm.synced_folder '.', '/vagrant', disabled: true
|
12
|
+
# enable if you want to access the repo via a share
|
13
|
+
#config.vm.synced_folder './vagrant-git', '/tmp/vagrant-git'
|
6
14
|
|
7
15
|
config.git.add_repo do |rc|
|
8
16
|
rc.target = 'https://github.com:Learnosity/vagrant-git.git'
|
data/lib/vagrant-git/action.rb
CHANGED
@@ -37,7 +37,7 @@ module VagrantPlugins
|
|
37
37
|
errors[rc.path].push(err)
|
38
38
|
@vm.ui.error(err)
|
39
39
|
end
|
40
|
-
|
40
|
+
elsif !p.success?
|
41
41
|
err = "Failed to clone #{rc.target} into #{rc.path}"
|
42
42
|
errors[rc.path].push(err)
|
43
43
|
@vm.ui.error(err)
|
@@ -48,7 +48,7 @@ module VagrantPlugins
|
|
48
48
|
if p.success?
|
49
49
|
@vm.ui.info("Checked out submodules.")
|
50
50
|
else
|
51
|
-
err ="WARNING: Failed to check out submodules for #{path}"
|
51
|
+
err ="WARNING: Failed to check out submodules for #{rc.path}"
|
52
52
|
errors[rc.path].push(err)
|
53
53
|
@vm.ui.error(err)
|
54
54
|
end
|
data/lib/vagrant-git/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bryan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-10-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.4.5.1
|
85
85
|
signing_key:
|
86
86
|
specification_version: 2
|
87
87
|
summary: A vagrant plugin to allow checking out git repositories as part of vagrant
|