firespring_dev_commands 3.1.5 → 3.1.6.pre.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/firespring_dev_commands/templates/docker/application.rb +56 -0
- data/lib/firespring_dev_commands/templates/docker/node/application.rb +1 -1
- data/lib/firespring_dev_commands/templates/docker/php/application.rb +1 -1
- data/lib/firespring_dev_commands/templates/docker/ruby/application.rb +1 -1
- data/lib/firespring_dev_commands/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81ab668b62c9ac2cf9615ccb7825acf33dc803317e90a8baf69d0dd6991e3099
|
4
|
+
data.tar.gz: 3ef0122f0e88583501519c36f5efaa11f3ff2f10ee8329536118c032dd0f71d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18590d3465b700eeb8db34b21fe89f994c2a6fdf60b3af0b068519f3ce50f371b3621898ce5362450e46423be227fd8c29311d4dea0afbd8eb53b24dc8857882
|
7
|
+
data.tar.gz: 194a7d9f2202447ca6c7ef64fff15c3a403d8a21d4a46b7ec101ebfe83ff85a694133a268899ca3bda06c0451b6ed230340d168209bcef111755e028121edabb
|
@@ -62,6 +62,44 @@ module Dev
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
# Create the rake task which starts a docker container for the application name which is not running anything
|
66
|
+
def create_up_empty_task!
|
67
|
+
application = @name
|
68
|
+
exclude = @exclude
|
69
|
+
|
70
|
+
DEV_COMMANDS_TOP_LEVEL.instance_eval do
|
71
|
+
namespace application do
|
72
|
+
return if exclude.include?(:up_empty)
|
73
|
+
|
74
|
+
desc "Starts up an empty #{application} container and it's dependencies"
|
75
|
+
task up_empty: %w(init_docker _pre_up_hooks) do
|
76
|
+
LOG.debug "In #{application} up_empty"
|
77
|
+
Dev::Docker::Compose.new(services: [application], options: ['--detach']).run(['sh', '-c', 'while [ true ]; do sleep 300; done;'])
|
78
|
+
Rake::Task[:_post_up_hooks].execute
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# Create the rake task which starts a docker container with no dependencies for the application name which is not running anything
|
85
|
+
def create_up_empty_no_deps_task!
|
86
|
+
application = @name
|
87
|
+
exclude = @exclude
|
88
|
+
|
89
|
+
DEV_COMMANDS_TOP_LEVEL.instance_eval do
|
90
|
+
namespace application do
|
91
|
+
return if exclude.include?(:up_empty_no_deps)
|
92
|
+
|
93
|
+
desc "Starts up an empty #{application} container but no dependencies"
|
94
|
+
task up_empty_no_deps: %w(init_docker _pre_up_hooks) do
|
95
|
+
LOG.debug "In #{application} up_empty_no_deps"
|
96
|
+
Dev::Docker::Compose.new(services: [application], options: ['--no-deps', '--detach']).run(['sh', '-c', 'while [ true ]; do sleep 300; done;'])
|
97
|
+
Rake::Task[:_post_up_hooks].execute
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
65
103
|
# Create the rake task which runs a docker compose exec bash for the application name
|
66
104
|
def create_sh_task!
|
67
105
|
application = @name
|
@@ -80,6 +118,24 @@ module Dev
|
|
80
118
|
end
|
81
119
|
end
|
82
120
|
|
121
|
+
# Create the rake task which runs a docker compose exec bash for the application name
|
122
|
+
def create_sh_empty_task!
|
123
|
+
application = @name
|
124
|
+
exclude = @exclude
|
125
|
+
|
126
|
+
DEV_COMMANDS_TOP_LEVEL.instance_eval do
|
127
|
+
namespace application do
|
128
|
+
return if exclude.include?(:sh_empty)
|
129
|
+
|
130
|
+
desc "Open a shell into an empty #{application} container"
|
131
|
+
task sh_empty: %W(init_docker #{application}:up_empty_no_deps _pre_sh_hooks) do
|
132
|
+
Dev::Docker::Compose.new(services: [application]).sh
|
133
|
+
Rake::Task[:_post_sh_hooks].execute
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
83
139
|
# Create the rake task which runs a docker compose logs for the application name
|
84
140
|
def create_logs_task!
|
85
141
|
application = @name
|
@@ -106,7 +106,7 @@ module Dev
|
|
106
106
|
node = @node
|
107
107
|
exclude = @exclude
|
108
108
|
test_isolation = @test_isolation
|
109
|
-
up_cmd = @start_container_dependencies_on_test ? :
|
109
|
+
up_cmd = @start_container_dependencies_on_test ? :up_empty : :up_empty_no_deps
|
110
110
|
test_artifacts = @test_artifacts
|
111
111
|
return if exclude.include?(:test)
|
112
112
|
|
@@ -151,7 +151,7 @@ module Dev
|
|
151
151
|
php = @php
|
152
152
|
exclude = @exclude
|
153
153
|
test_isolation = @test_isolation
|
154
|
-
up_cmd = @start_container_dependencies_on_test ? :
|
154
|
+
up_cmd = @start_container_dependencies_on_test ? :up_empty : :up_empty_no_deps
|
155
155
|
test_artifacts = @test_artifacts
|
156
156
|
return if exclude.include?(:test)
|
157
157
|
|
@@ -107,7 +107,7 @@ module Dev
|
|
107
107
|
ruby = @ruby
|
108
108
|
exclude = @exclude
|
109
109
|
test_isolation = @test_isolation
|
110
|
-
up_cmd = @start_container_dependencies_on_test ? :
|
110
|
+
up_cmd = @start_container_dependencies_on_test ? :up_empty : :up_empty_no_deps
|
111
111
|
test_artifacts = @test_artifacts
|
112
112
|
return if exclude.include?(:test)
|
113
113
|
|
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: 3.1.
|
4
|
+
version: 3.1.6.pre.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -296,14 +296,14 @@ dependencies:
|
|
296
296
|
requirements:
|
297
297
|
- - "~>"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
299
|
+
version: 4.23.0
|
300
300
|
type: :runtime
|
301
301
|
prerelease: false
|
302
302
|
version_requirements: !ruby/object:Gem::Requirement
|
303
303
|
requirements:
|
304
304
|
- - "~>"
|
305
305
|
- !ruby/object:Gem::Version
|
306
|
-
version:
|
306
|
+
version: 4.23.0
|
307
307
|
- !ruby/object:Gem::Dependency
|
308
308
|
name: ox
|
309
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -476,9 +476,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
476
476
|
version: '3.1'
|
477
477
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
478
478
|
requirements:
|
479
|
-
- - "
|
479
|
+
- - ">"
|
480
480
|
- !ruby/object:Gem::Version
|
481
|
-
version:
|
481
|
+
version: 1.3.1
|
482
482
|
requirements: []
|
483
483
|
rubygems_version: 3.4.10
|
484
484
|
signing_key:
|