Class: TasteTester::Hooks
- Inherits:
-
Object
- Object
- TasteTester::Hooks
- Extended by:
- BetweenMeals::Util, Logging
- Defined in:
- lib/taste_tester/hooks.rb
Overview
Hooks placeholders
Class Method Summary collapse
- .get(file) ⇒ Object
-
.post_test(_dryrun, _repo, _hosts) ⇒ Object
Do stuff after we put hosts in test mode.
-
.post_upload(_dryrun, _repo, _last_ref, _cur_ref) ⇒ Object
Do stuff after we upload to chef-zero.
-
.pre_test(_dryrun, _repo, _hosts) ⇒ Object
Do stuff before we put hosts in test mode.
-
.pre_upload(_dryrun, _repo, _last_ref, _cur_ref) ⇒ Object
Do stuff before we upload to chef-zero.
-
.repo_checks(_dryrun, _repo) ⇒ Object
Additional checks you want to do on the repo.
-
.test_remote_client_rb_extra_code(_hostname) ⇒ Object
Should return a string with extra stuff to shove in the remote client.rb.
-
.test_remote_cmds(_dryrun, _hostname) ⇒ Object
This should return an array of commands to execute on remote systems.
Methods included from Logging
formatter, formatterproc=, logger, logger, use_log_formatter=, verbosity=
Class Method Details
.get(file) ⇒ Object
58 59 60 61 62 63 64 65 66 |
# File 'lib/taste_tester/hooks.rb', line 58 def self.get(file) path = File.(file) logger.warn("Loading plugin at #{path}") unless File.exists?(path) logger.error('Plugin file not found') exit(1) end class_eval(File.read(path), __FILE__, __LINE__) end |
.post_test(_dryrun, _repo, _hosts) ⇒ Object
Do stuff after we put hosts in test mode
51 52 |
# File 'lib/taste_tester/hooks.rb', line 51 def self.post_test(_dryrun, _repo, _hosts) end |
.post_upload(_dryrun, _repo, _last_ref, _cur_ref) ⇒ Object
Do stuff after we upload to chef-zero
33 34 |
# File 'lib/taste_tester/hooks.rb', line 33 def self.post_upload(_dryrun, _repo, _last_ref, _cur_ref) end |
.pre_test(_dryrun, _repo, _hosts) ⇒ Object
Do stuff before we put hosts in test mode
37 38 |
# File 'lib/taste_tester/hooks.rb', line 37 def self.pre_test(_dryrun, _repo, _hosts) end |
.pre_upload(_dryrun, _repo, _last_ref, _cur_ref) ⇒ Object
Do stuff before we upload to chef-zero
29 30 |
# File 'lib/taste_tester/hooks.rb', line 29 def self.pre_upload(_dryrun, _repo, _last_ref, _cur_ref) end |
.repo_checks(_dryrun, _repo) ⇒ Object
Additional checks you want to do on the repo
55 56 |
# File 'lib/taste_tester/hooks.rb', line 55 def self.repo_checks(_dryrun, _repo) end |
.test_remote_client_rb_extra_code(_hostname) ⇒ Object
Should return a string with extra stuff to shove in the remote client.rb
47 48 |
# File 'lib/taste_tester/hooks.rb', line 47 def self.test_remote_client_rb_extra_code(_hostname) end |
.test_remote_cmds(_dryrun, _hostname) ⇒ Object
This should return an array of commands to execute on remote systems.
42 43 |
# File 'lib/taste_tester/hooks.rb', line 42 def self.test_remote_cmds(_dryrun, _hostname) end |