vagrant-docker-compose 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f5242f14ba407e80ece86473a878df9ea273123
4
- data.tar.gz: 993e9c1efbb5f5c5df3b53d452c509aec5df2b63
3
+ metadata.gz: 02e166a6319d5d34775e89c48ed70105a768523e
4
+ data.tar.gz: f2ec26807ea919483fac9d496d032bc1c79afa40
5
5
  SHA512:
6
- metadata.gz: 188ded42a1e399332297ff08f9e47e9d65a623e2b25f8d503371077a6f541a7721dda4d88128a7fb20d190f0919951b4e8e7285ff840b03285a8db83340f1f05
7
- data.tar.gz: 8ca533be2d8292dc06a5fa5baadd59d2b77cab0602d54179a459a4e14badf00c59243ee0f5c0f1f356a743e1515813f4e97b0ba99d35a84ce6d576fad80779f8
6
+ metadata.gz: 629f859e2abfaa95d589a07382d81c22f1b233021b69ef94fce0202a12f82cc79e9e4ee6eba84af9934b9ae61db2b03237c2995c748f38cae02fff72be2f10f0
7
+ data.tar.gz: 5f823dbc0ac6fdeb0e45d571cc550c471b3cf76d910d51742ae58e126406705cfc77303bd7c7cfc8498ee0041eec183f1a4543293af101c0ff343fec3baa7966
data/README.md CHANGED
@@ -57,6 +57,12 @@ docker-compose -f [yml] build
57
57
  docker-compose -f [yml] up
58
58
  ```
59
59
 
60
+ ### Other configs
61
+
62
+ * `compose_version` – defaults to `1.3.1`.
63
+ * `project_name` – compose will default to naming the project `vagrant`.
64
+ * `executable` – the location the executable will be stored, defaults to `/usr/local/bin/docker-compose`.
65
+
60
66
  ## Example
61
67
 
62
- See `example` in the repository for a full working example.
68
+ See `example` in the repository for a full working example.
@@ -5,7 +5,7 @@ module VagrantPlugins
5
5
  module DockerComposeInstall
6
6
  def self.docker_compose_install(machine, config)
7
7
  machine.communicate.tap do |comm|
8
- comm.sudo("curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > #{config.executable}
8
+ comm.sudo("curl -L https://github.com/docker/compose/releases/download/#{config.compose_version}/docker-compose-`uname -s`-`uname -m` > #{config.executable}
9
9
  chmod +x #{config.executable}")
10
10
  end
11
11
  end
@@ -1,7 +1,7 @@
1
1
  module VagrantPlugins
2
2
  module DockerComposeProvisioner
3
3
  class Config < Vagrant.plugin("2", :config)
4
- attr_accessor :yml, :rebuild, :project_name, :executable
4
+ attr_accessor :yml, :rebuild, :project_name, :executable, :compose_version
5
5
 
6
6
  def yml=(yml)
7
7
  raise DockerComposeError, :yml_must_be_absolute if !Pathname.new(yml).absolute?
@@ -11,11 +11,13 @@ module VagrantPlugins
11
11
  def initialize
12
12
  @executable = UNSET_VALUE
13
13
  @project_name = UNSET_VALUE
14
+ @compose_version = UNSET_VALUE
14
15
  end
15
16
 
16
17
  def finalize!
17
18
  @executable = "/usr/local/bin/docker-compose" if @executable == UNSET_VALUE
18
19
  @project_name = nil if @project_name == UNSET_VALUE
20
+ @compose_version = "1.3.1" if @compose_version == UNSET_VALUE
19
21
  end
20
22
  end
21
23
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DockerComposeProvisioner
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-docker-compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leigh McCulloch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-04 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Vagrant provisioner for docker compose.
14
14
  email: