chake 0.91 → 0.92

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6fe9cf47e4e7590cb5a32366622afc40947318a280a958615c927b5f50bd82a6
4
- data.tar.gz: 415f634b59bdb86ad59e582e8685ddd85891d4df66a54d81f9cc0c8bfa7e6e26
3
+ metadata.gz: 796da031fd0926e8f4a2ba13a949dc6b308d0ceb811a8568db08a5ca54f99a07
4
+ data.tar.gz: ab0c285bbbe3a7e8ce6b665ac63de976c4a6239ebc2e356ec7f8ded4caaa0f3a
5
5
  SHA512:
6
- metadata.gz: 9840c830bdbb3469a7458ac19eeeb4518a75a07ae35937326a02c437be8a6b809adb5bb89d45ac3bad86703f3c2068139378b300e057bb119d3b4249d7b38285
7
- data.tar.gz: 2d85e0d8e47a6ce2a5b189bbe9cc81b0b58913c7089fa60f7b61697787e37b58dc7356c7626c64c37915f0ba72e104c38d5f67da5d134a925f13f98315470963
6
+ metadata.gz: 2f8ee4d755b3beb84e101c694823e685ce121ec4b26183b0048db91da7d5ced6fcda624fc29cd96f6e111aa28d6e4a4b13e145d7f5887bf59032b3c1db868691
7
+ data.tar.gz: 0320fe56feaf9a4c8e514cbf33cfff46cd24f68daa88ab6c74e88ab475d8e4c13b0ac7477a463a28478aa38cad55dd588cfbe028ff1315fd62c1baf71d8e5bbb
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.92
2
+
3
+ - Add support for connect:$HOST hooks
4
+
1
5
  # 0.91
2
6
 
3
7
  - itamae: handle empty recipe list
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
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = '0.91'.freeze
2
+ VERSION = '0.92'.freeze
3
3
  end
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] => %i[recipe_input connect_common] do |_task, _args|
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] => %i[run_input connect_common] do
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.91'
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: 2023-12-17 00:00:00.000000000 Z
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.4.20
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: