firespring_dev_commands 1.4.3 → 1.4.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c3ded1d9447a6d6e2867a9ab430f75329391ce29e634b92d22202216898cee
|
4
|
+
data.tar.gz: cab9bd35fbc64bca310156f6b91ab9c4500c3aca29453a40064768b094aa68f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b2a90783750ba4417c78d9da0e6b1830585791bbbb2f0709d1c0542d64db5a5be08122ee1f2742acbb87c5fed8c28f70dd40f9d3b7f1f2999ed0e9bf40bd77
|
7
|
+
data.tar.gz: a2f4eed55a1c3c79a595a30fa496e0679e2924f7b3f40244c206bac4120175408bf3d75f55496f73f5f4eee35bd070abcc0bf794298fdaaac05c0ed8664a2035
|
@@ -70,8 +70,11 @@ module Dev
|
|
70
70
|
end
|
71
71
|
|
72
72
|
# Prunes/removes all unused volumes
|
73
|
+
# Specify ALL_VOLUMES=false in your environment to only clean anonymous volumes (docker version 23.x+)
|
73
74
|
def prune_volumes
|
74
|
-
|
75
|
+
opts = {}
|
76
|
+
opts[:filters] = {all: ['true']}.to_json if Dev::Common.new.version_greater_than('22.9999.0', self.class.version) && ENV['ALL_VOLUMES'].to_s.strip != 'false'
|
77
|
+
_prune('volumes', opts: opts)
|
75
78
|
end
|
76
79
|
|
77
80
|
# Prunes/removes all unused images
|
@@ -80,8 +83,8 @@ module Dev
|
|
80
83
|
end
|
81
84
|
|
82
85
|
# Private method which actually calls the prune endpoint on the docker api connection
|
83
|
-
private def _prune(type)
|
84
|
-
response = ::Docker.connection.post("/#{type.downcase}/prune",
|
86
|
+
private def _prune(type, opts: {})
|
87
|
+
response = ::Docker.connection.post("/#{type.downcase}/prune", opts)
|
85
88
|
format_prune(type, response)
|
86
89
|
rescue ::Docker::Error::ServerError => e
|
87
90
|
# Specifically check for 'prune already running' error and retry if found
|
@@ -137,7 +137,7 @@ module Dev
|
|
137
137
|
DEV_COMMANDS_TOP_LEVEL.instance_eval do
|
138
138
|
namespace application do
|
139
139
|
namespace :php do
|
140
|
-
desc 'Install all
|
140
|
+
desc 'Install all composer packages'
|
141
141
|
task install: %w(init_docker up_no_deps) do
|
142
142
|
Dev::Docker::Compose.new(services: application).exec(*php.install_command)
|
143
143
|
end
|
@@ -93,7 +93,7 @@ module Dev
|
|
93
93
|
DEV_COMMANDS_TOP_LEVEL.instance_eval do
|
94
94
|
namespace application do
|
95
95
|
namespace :ruby do
|
96
|
-
desc 'Install all
|
96
|
+
desc 'Install all bundled gems'
|
97
97
|
task install: %w(init_docker up_no_deps) do
|
98
98
|
Dev::Docker::Compose.new(services: application).exec(*ruby.install_command)
|
99
99
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firespring_dev_commands
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|