chake 0.91 → 0.92
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/README.md +2 -0
- data/Rakefile +1 -1
- data/lib/chake/version.rb +1 -1
- data/lib/chake.rb +7 -4
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 796da031fd0926e8f4a2ba13a949dc6b308d0ceb811a8568db08a5ca54f99a07
|
4
|
+
data.tar.gz: ab0c285bbbe3a7e8ce6b665ac63de976c4a6239ebc2e356ec7f8ded4caaa0f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f8ee4d755b3beb84e101c694823e685ce121ec4b26183b0048db91da7d5ced6fcda624fc29cd96f6e111aa28d6e4a4b13e145d7f5887bf59032b3c1db868691
|
7
|
+
data.tar.gz: 0320fe56feaf9a4c8e514cbf33cfff46cd24f68daa88ab6c74e88ab475d8e4c13b0ac7477a463a28478aa38cad55dd588cfbe028ff1315fd62c1baf71d8e5bbb
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -254,6 +254,8 @@ converging. To do this, you just need to enhance the corresponding tasks:
|
|
254
254
|
* `connect_common`: executed before doing any action that connects to any of
|
255
255
|
the hosts. This can be used for example to generate a ssh configuration file
|
256
256
|
based on the contents of the nodes definition files.
|
257
|
+
* `connect:HOSTNAME`: executed before doing any action that connects to
|
258
|
+
`HOSTNAME`.
|
257
259
|
|
258
260
|
Example:
|
259
261
|
|
data/Rakefile
CHANGED
@@ -100,7 +100,7 @@ end
|
|
100
100
|
|
101
101
|
desc 'Check spelling in the source code'
|
102
102
|
task :codespell do
|
103
|
-
sh 'codespell', '--skip=.git', '--skip=coverage', '--skip=*.asc', '--skip=*.swp', '--skip=tags'
|
103
|
+
sh 'codespell', '--skip=.git', '--skip=coverage', '--skip=*.asc', '--skip=*.swp', '--skip=tags', '--skip=*.1'
|
104
104
|
end
|
105
105
|
|
106
106
|
task default: [:test, :style, :codespell]
|
data/lib/chake/version.rb
CHANGED
data/lib/chake.rb
CHANGED
@@ -185,7 +185,7 @@ Chake.nodes.each do |node|
|
|
185
185
|
end
|
186
186
|
|
187
187
|
desc 'apply <recipe> on #{hostname}'
|
188
|
-
task "apply:#{hostname}", [:recipe] =>
|
188
|
+
task "apply:#{hostname}", [:recipe] => [:recipe_input, :connect_common, "connect:#{hostname}"] do |_task, _args|
|
189
189
|
maybe_decrypt(node) do
|
190
190
|
node.apply($recipe_to_apply)
|
191
191
|
end
|
@@ -193,19 +193,22 @@ Chake.nodes.each do |node|
|
|
193
193
|
task "apply:#{hostname}" => converge_dependencies
|
194
194
|
|
195
195
|
desc "run a command on #{hostname}"
|
196
|
-
task "run:#{hostname}", [:command] =>
|
196
|
+
task "run:#{hostname}", [:command] => [:run_input, :connect_common, "connect:#{hostname}"] do
|
197
197
|
node.run($cmd_to_run)
|
198
198
|
end
|
199
199
|
|
200
200
|
desc "Logs in to a shell on #{hostname}"
|
201
|
-
task "login:#{hostname}" => :connect_common do
|
201
|
+
task "login:#{hostname}" => [:connect_common, "connect:#{hostname}"] do
|
202
202
|
node.run_shell
|
203
203
|
end
|
204
204
|
|
205
205
|
desc 'checks connectivity and setup on all nodes'
|
206
|
-
task "check:#{hostname}" => :connect_common do
|
206
|
+
task "check:#{hostname}" => [:connect_common, "connect:#{hostname}"] do
|
207
207
|
node.run('sudo echo OK')
|
208
208
|
end
|
209
|
+
|
210
|
+
# needs to be overridden in user projects
|
211
|
+
task "connect:#{hostname}"
|
209
212
|
end
|
210
213
|
|
211
214
|
task :run_input, :command do |_task, args|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.92'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Terceiro
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-21 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bundler
|
@@ -185,7 +184,6 @@ licenses:
|
|
185
184
|
- MIT
|
186
185
|
metadata:
|
187
186
|
rubygems_mfa_required: 'true'
|
188
|
-
post_install_message:
|
189
187
|
rdoc_options: []
|
190
188
|
require_paths:
|
191
189
|
- lib
|
@@ -200,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
198
|
- !ruby/object:Gem::Version
|
201
199
|
version: '0'
|
202
200
|
requirements: []
|
203
|
-
rubygems_version: 3.
|
204
|
-
signing_key:
|
201
|
+
rubygems_version: 3.6.3
|
205
202
|
specification_version: 4
|
206
203
|
summary: serverless configuration management tool for chef
|
207
204
|
test_files:
|