shippy 0.2.9 → 0.2.10

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
  SHA256:
3
- metadata.gz: c8a547859425588ab2d87d11010d8650d8b1d5ee67b6abe1239aa1215c8799ed
4
- data.tar.gz: bab2f41d53d11eda45e4e7e70d09bda20e09d2ca6d239a1d0985c3d796a62766
3
+ metadata.gz: 3792c6bab1abb3441290652a346d4e2f4cdb0e838261205785efb1e20330a92c
4
+ data.tar.gz: cb1545e302e988e5a426a5e84b1c4c7930c7080b00f56ab49f1faf843b9cc920
5
5
  SHA512:
6
- metadata.gz: c44eaa3a47d6e8c13c43d41a4fc676e9c9347459c15ef7c4e44ed134c9b99e15d8dfcb6934a82313b1840c7ee69ad450555890de26cd8b4ac94f436ea0daff79
7
- data.tar.gz: 534231ef52cb40213a44c969f53c4f479f6573a5a299c3a03ac5327ba2be4a2e8dec1591ccc56c4ae5f5c85d96c87c41b3274c09d5139242adf727999eb373c1
6
+ metadata.gz: 3c2370f51f6a8cb669217850432ad73059c4320784e1649571d6821fca59072c4a2c2d6982f3648d9381a15d1898d35f46cd9bc251c044d6293551cbda768559
7
+ data.tar.gz: 9a6f4e9d1d2d185b167a3d5da4cce12880d5ac7bbbf0c8d67d8054293f5f4d1ef9f259ee45ab88bc9427cd9b87fa6315641cdf94999fd025f4dc828c4f0729b9
data/README.md CHANGED
@@ -198,7 +198,7 @@ end
198
198
 
199
199
  #### 🎛 Overriding defaults
200
200
 
201
- To keep your files clean, Shippy provides a `use_default_option`s method. Calling this automatically applies default Docker networks for Traefik access, a standard restart policy (like `unless-stopped`), and default logging limits so your drives don't fill up.
201
+ To keep your files clean, Shippy provides a `use_default_options` method. Calling this automatically applies default Docker networks for Traefik access, a standard restart policy (like `unless-stopped`), and default logging limits so your drives don't fill up.
202
202
 
203
203
  If you need fine-grained control, you can omit `use_default_options` and specify exactly what you want:
204
204
 
@@ -53,6 +53,8 @@ module Shippy
53
53
 
54
54
  delegate :x, to: Shippy
55
55
  delegate :wildcard_domain, to: :x
56
+ delegate :deploy_path, to: :x
57
+ delegate :bind_volume_path, to: :x
56
58
 
57
59
  private
58
60
 
data/lib/shippy/config.rb CHANGED
@@ -11,6 +11,10 @@ module Shippy
11
11
  @secrets.fetch(app, name)
12
12
  end
13
13
 
14
+ def bind_volume_path(name)
15
+ File.join(deploy_path, "volumes", name)
16
+ end
17
+
14
18
  def ssh_options
15
19
  options = {
16
20
  user: ssh_user,
@@ -1,8 +1,8 @@
1
1
  module Shippy
2
2
  class Service
3
3
  ATTRIBUTES = %i[
4
- build command depends_on devices entrypoint environment extra_hosts hostname
5
- image labels logging networks user ports restart volumes volumes_from
4
+ build command depends_on devices entrypoint environment extra_hosts group_add
5
+ hostname image labels logging networks user ports restart volumes volumes_from
6
6
  working_dir security_opt
7
7
  ].freeze
8
8
 
@@ -97,6 +97,8 @@ module Shippy
97
97
 
98
98
  delegate :x, to: Shippy
99
99
  delegate :wildcard_domain, to: :x
100
+ delegate :deploy_path, to: :x
101
+ delegate :bind_volume_path, to: :x
100
102
 
101
103
  def hooks
102
104
  if block_given?
@@ -1,3 +1,3 @@
1
1
  module Shippy
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shippy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marius Bobin