vagrant-git 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e17344b41ec7ac951df5fffadd2351fc36e9929
4
- data.tar.gz: b2fbc96bcdda145d0c0cac873c1b333799d3749c
3
+ metadata.gz: 9d72346fc8bb90343e3daf622adf254030c5a522
4
+ data.tar.gz: 946fc977cc5d8ad07f16d748594b491c85ed9a06
5
5
  SHA512:
6
- metadata.gz: f5cbbc7b89d5f3e5218f172e4322ccfd7af42e069f10f78b2f7ce38530e41a2000fb2c6e7b01d42b8564ead989cf34fe93f70c28844ad0e27efad0182a90ac81
7
- data.tar.gz: 7670ecef4748e60ace2c152bc357cd585137a2994ceb60fd99240255b8fca1376c706b0ba3228eddce94ad46ba7fb96448e10a9782dfd1b46e1c66e37d823e89
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.gem
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
- * **pull_on_load**: whether to do a fetch & pull when starting up the VM
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-sparseimage.gemspec
50
+ $ gem build vagrant-git.gemspec
51
51
  ```
@@ -1,8 +1,16 @@
1
- Vagrant.configure("2") do |config|
2
- config.vm.hostname = 'sparseimage-test'
3
- config.vm.box = 'precise64nfs_clean'
4
- config.vm.box_url = 'https://s3-ap-southeast-2.amazonaws.com/learnosity-vagrant/precise64nfs_clean.box'
5
- config.vm.network :private_network, ip: '172.16.42.10'
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'
@@ -37,7 +37,7 @@ module VagrantPlugins
37
37
  errors[rc.path].push(err)
38
38
  @vm.ui.error(err)
39
39
  end
40
- else !p.success?
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantGit
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
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
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: 2014-07-14 00:00:00.000000000 Z
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.2.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