chake 0.20 → 0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog.md +4 -0
  3. data/coverage/assets/{0.10.0 → 0.11.0}/application.css +41 -31
  4. data/coverage/assets/{0.10.0 → 0.11.0}/application.js +20568 -11672
  5. data/coverage/assets/{0.10.0 → 0.11.0}/colorbox/border.png +0 -0
  6. data/coverage/assets/{0.10.0 → 0.11.0}/colorbox/controls.png +0 -0
  7. data/coverage/assets/{0.10.0 → 0.11.0}/colorbox/loading.gif +0 -0
  8. data/coverage/assets/{0.10.0 → 0.11.0}/colorbox/loading_background.png +0 -0
  9. data/coverage/assets/{0.10.0 → 0.11.0}/favicon_green.png +0 -0
  10. data/coverage/assets/{0.10.0 → 0.11.0}/favicon_red.png +0 -0
  11. data/coverage/assets/{0.10.0 → 0.11.0}/favicon_yellow.png +0 -0
  12. data/coverage/assets/{0.10.0 → 0.11.0}/loading.gif +0 -0
  13. data/coverage/assets/{0.10.0 → 0.11.0}/magnify.png +0 -0
  14. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  15. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  16. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  17. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  18. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  19. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  20. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  21. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  22. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-icons_222222_256x240.png +0 -0
  23. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  24. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-icons_454545_256x240.png +0 -0
  25. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-icons_888888_256x240.png +0 -0
  26. data/coverage/assets/{0.10.0 → 0.11.0}/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  27. data/coverage/index.html +4044 -2212
  28. data/lib/chake.rb +2 -2
  29. data/lib/chake/version.rb +1 -1
  30. data/tags +72 -0
  31. metadata +28 -28
data/lib/chake.rb CHANGED
@@ -216,13 +216,13 @@ Chake.nodes.each do |node|
216
216
  desc "converge #{hostname}"
217
217
  task "converge:#{hostname}" => converge_dependencies do
218
218
  chef_logging = Rake.application.options.silent && '-l fatal' || ''
219
- node.run_as_root "chef-solo -c #{node.path}/#{Chake.chef_config} #{chef_logging} -j #{node.path}/#{Chake.tmpdir}/#{hostname}.json"
219
+ node.run_as_root "rm -f #{node.path}/nodes/*.json && chef-solo -c #{node.path}/#{Chake.chef_config} #{chef_logging} -j #{node.path}/#{Chake.tmpdir}/#{hostname}.json"
220
220
  end
221
221
 
222
222
  desc 'apply <recipe> on #{hostname}'
223
223
  task "apply:#{hostname}", [:recipe] => [:recipe_input, :connect_common] do |task, args|
224
224
  chef_logging = Rake.application.options.silent && '-l fatal' || ''
225
- node.run_as_root "chef-solo -c #{node.path}/#{Chake.chef_config} #{chef_logging} -j #{node.path}/#{Chake.tmpdir}/#{hostname}.json --override-runlist recipe[#{$recipe_to_apply}]"
225
+ node.run_as_root "rm -f #{node.path}/nodes/*.json && chef-solo -c #{node.path}/#{Chake.chef_config} #{chef_logging} -j #{node.path}/#{Chake.tmpdir}/#{hostname}.json --override-runlist recipe[#{$recipe_to_apply}]"
226
226
  end
227
227
  task "apply:#{hostname}" => converge_dependencies
228
228
 
data/lib/chake/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chake
2
- VERSION = "0.20"
2
+ VERSION = "0.21"
3
3
  end
data/tags ADDED
@@ -0,0 +1,72 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.9~svn20110310 //
7
+ Backend lib/chake/backend.rb /^ class Backend < Struct.new(:node)$/;" c class:Chake
8
+ Backend lib/chake/backend/local.rb /^ class Backend$/;" c class:Chake
9
+ Backend lib/chake/backend/ssh.rb /^ class Backend$/;" c class:Chake
10
+ Chake lib/chake/backend.rb /^module Chake$/;" m
11
+ Chake lib/chake/backend/local.rb /^module Chake$/;" m
12
+ Chake lib/chake/backend/ssh.rb /^module Chake$/;" m
13
+ Chake lib/chake/config.rb /^module Chake$/;" m
14
+ Chake lib/chake/node.rb /^module Chake$/;" m
15
+ Chake lib/chake/readline.rb /^module Chake$/;" m
16
+ Chake lib/chake/tmpdir.rb /^module Chake$/;" m
17
+ Chake lib/chake/version.rb /^module Chake$/;" m
18
+ CommandFailed lib/chake/backend.rb /^ class CommandFailed < Exception$/;" c class:Chake.Backend
19
+ Commands lib/chake/readline.rb /^ class Commands < Readline$/;" c class:Chake
20
+ Local lib/chake/backend/local.rb /^ class Local < Backend$/;" c class:Chake.Backend
21
+ Node lib/chake/node.rb /^ class Node$/;" c class:Chake
22
+ Rake bin/chake /^class Rake::Application$/;" c
23
+ Readline lib/chake/readline.rb /^ class Readline$/;" c class:Chake
24
+ Recipes lib/chake/readline.rb /^ class Recipes < Readline$/;" c class:Chake
25
+ Ssh lib/chake/backend/ssh.rb /^ class Ssh < Backend$/;" c class:Chake.Backend
26
+ backend lib/chake/node.rb /^ def backend$/;" f class:Chake.Node
27
+ backend_name lib/chake/backend.rb /^ def self.backend_name$/;" F class:Chake.Backend
28
+ command_runner lib/chake/backend/local.rb /^ def command_runner$/;" f class:Chake.Backend.Local
29
+ command_runner lib/chake/backend/ssh.rb /^ def command_runner$/;" f class:Chake.Backend.Ssh
30
+ encrypted_for lib/chake.rb /^def encrypted_for(node)$/;" f
31
+ finish lib/chake/readline.rb /^ def finish$/;" f class:Chake.Readline
32
+ get lib/chake/backend.rb /^ def self.get(name)$/;" F class:Chake.Backend
33
+ history lib/chake/readline.rb /^ def history$/;" f class:Chake.Readline
34
+ history_file lib/chake/readline.rb /^ def history_file$/;" f class:Chake.Readline
35
+ history_file lib/chake/readline.rb /^ def self.history_file$/;" F class:Chake.Commands
36
+ history_file lib/chake/readline.rb /^ def self.history_file$/;" F class:Chake.Recipes
37
+ if_files_changed lib/chake.rb /^def if_files_changed(node, group_name, files)$/;" f
38
+ inherited lib/chake/backend.rb /^ def self.inherited(subclass)$/;" F class:Chake.Backend
39
+ init lib/chake/readline.rb /^ def init$/;" f class:Chake.Readline
40
+ initialize lib/chake/node.rb /^ def initialize(hostname, data = {})$/;" f class:Chake.Node
41
+ max_node_name_length lib/chake/node.rb /^ def self.max_node_name_length$/;" F class:Chake.Node
42
+ max_node_name_length lib/chake/node.rb /^ def self.max_node_name_length=(value)$/;" F class:Chake.Node
43
+ prompt lib/chake/readline.rb /^ def prompt$/;" f class:Chake.Readline
44
+ prompt lib/chake/readline.rb /^ def self.prompt$/;" F class:Chake.Commands
45
+ prompt lib/chake/readline.rb /^ def self.prompt$/;" F class:Chake.Recipes
46
+ readline lib/chake/readline.rb /^ def readline$/;" f class:Chake.Readline
47
+ rsync lib/chake/backend.rb /^ def rsync$/;" f class:Chake.Backend
48
+ rsync lib/chake/backend/ssh.rb /^ def rsync$/;" f class:Chake.Backend.Ssh
49
+ rsync_dest lib/chake/backend.rb /^ def rsync_dest$/;" f class:Chake.Backend
50
+ rsync_dest lib/chake/backend/ssh.rb /^ def rsync_dest$/;" f class:Chake.Backend.Ssh
51
+ rsync_ssh lib/chake/backend/ssh.rb /^ def rsync_ssh$/;" f class:Chake.Backend.Ssh
52
+ run lib/chake/backend.rb /^ def run(cmd)$/;" f class:Chake.Backend
53
+ run_as_root lib/chake/backend.rb /^ def run_as_root(cmd)$/;" f class:Chake.Backend
54
+ run_shell lib/chake/backend.rb /^ def run_shell$/;" f class:Chake.Backend
55
+ scp lib/chake/backend.rb /^ def scp$/;" f class:Chake.Backend
56
+ scp lib/chake/backend/ssh.rb /^ def scp$/;" f class:Chake.Backend.Ssh
57
+ scp_dest lib/chake/backend.rb /^ def scp_dest$/;" f class:Chake.Backend
58
+ scp_dest lib/chake/backend/ssh.rb /^ def scp_dest$/;" f class:Chake.Backend.Ssh
59
+ scp_options lib/chake/backend/ssh.rb /^ def scp_options$/;" f class:Chake.Backend.Ssh
60
+ shell_command lib/chake/backend/local.rb /^ def shell_command$/;" f class:Chake.Backend.Local
61
+ shell_command lib/chake/backend/ssh.rb /^ def shell_command$/;" f class:Chake.Backend.Ssh
62
+ skip? lib/chake/backend.rb /^ def skip?$/;" f class:Chake.Backend
63
+ skip? lib/chake/backend/local.rb /^ def skip?$/;" f class:Chake.Backend.Local
64
+ ssh_config lib/chake/backend/ssh.rb /^ def ssh_config$/;" f class:Chake.Backend.Ssh
65
+ ssh_config_file lib/chake/backend/ssh.rb /^ def ssh_config_file$/;" f class:Chake.Backend.Ssh
66
+ ssh_options lib/chake/backend/ssh.rb /^ def ssh_options$/;" f class:Chake.Backend.Ssh
67
+ ssh_prefix lib/chake/backend/ssh.rb /^ def ssh_prefix$/;" f class:Chake.Backend.Ssh
68
+ ssh_target lib/chake/backend/ssh.rb /^ def ssh_target$/;" f class:Chake.Backend.Ssh
69
+ thread_pool bin/chake /^ def thread_pool # :nodoc:$/;" f class:Rake
70
+ tmpdir lib/chake/tmpdir.rb /^ def self.tmpdir$/;" F class:Chake
71
+ to_s lib/chake/backend.rb /^ def to_s$/;" f class:Chake.Backend
72
+ write_json_file lib/chake.rb /^def write_json_file(file, data)$/;" f
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chake
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.20'
4
+ version: '0.21'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Terceiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2020-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,30 +100,30 @@ files:
100
100
  - bin/chake
101
101
  - chake.gemspec
102
102
  - chake.spec.erb
103
- - coverage/assets/0.10.0/application.css
104
- - coverage/assets/0.10.0/application.js
105
- - coverage/assets/0.10.0/colorbox/border.png
106
- - coverage/assets/0.10.0/colorbox/controls.png
107
- - coverage/assets/0.10.0/colorbox/loading.gif
108
- - coverage/assets/0.10.0/colorbox/loading_background.png
109
- - coverage/assets/0.10.0/favicon_green.png
110
- - coverage/assets/0.10.0/favicon_red.png
111
- - coverage/assets/0.10.0/favicon_yellow.png
112
- - coverage/assets/0.10.0/loading.gif
113
- - coverage/assets/0.10.0/magnify.png
114
- - coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
115
- - coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
116
- - coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
117
- - coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
118
- - coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png
119
- - coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
120
- - coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
121
- - coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
122
- - coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png
123
- - coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png
124
- - coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png
125
- - coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png
126
- - coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png
103
+ - coverage/assets/0.11.0/application.css
104
+ - coverage/assets/0.11.0/application.js
105
+ - coverage/assets/0.11.0/colorbox/border.png
106
+ - coverage/assets/0.11.0/colorbox/controls.png
107
+ - coverage/assets/0.11.0/colorbox/loading.gif
108
+ - coverage/assets/0.11.0/colorbox/loading_background.png
109
+ - coverage/assets/0.11.0/favicon_green.png
110
+ - coverage/assets/0.11.0/favicon_red.png
111
+ - coverage/assets/0.11.0/favicon_yellow.png
112
+ - coverage/assets/0.11.0/loading.gif
113
+ - coverage/assets/0.11.0/magnify.png
114
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
115
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
116
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
117
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
118
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png
119
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
120
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
121
+ - coverage/assets/0.11.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
122
+ - coverage/assets/0.11.0/smoothness/images/ui-icons_222222_256x240.png
123
+ - coverage/assets/0.11.0/smoothness/images/ui-icons_2e83ff_256x240.png
124
+ - coverage/assets/0.11.0/smoothness/images/ui-icons_454545_256x240.png
125
+ - coverage/assets/0.11.0/smoothness/images/ui-icons_888888_256x240.png
126
+ - coverage/assets/0.11.0/smoothness/images/ui-icons_cd0a0a_256x240.png
127
127
  - coverage/index.html
128
128
  - examples/test/Rakefile
129
129
  - examples/test/config.rb
@@ -148,6 +148,7 @@ files:
148
148
  - spec/chake/backend_spec.rb
149
149
  - spec/chake/node_spec.rb
150
150
  - spec/spec_helper.rb
151
+ - tags
151
152
  homepage: https://gitlab.com/terceiro/chake
152
153
  licenses:
153
154
  - MIT
@@ -167,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
168
  - !ruby/object:Gem::Version
168
169
  version: '0'
169
170
  requirements: []
170
- rubyforge_project:
171
- rubygems_version: 2.7.6.2
171
+ rubygems_version: 3.1.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: serverless configuration management tool for chef