Module: Rake::DSL
- Includes:
- ChefWorkflow::SSHHelper, ChefWorkflow::TaskHelper
- Defined in:
- lib/chef-workflow/task-helpers/with_scheduler.rb,
lib/chef-workflow/task-helpers/ssh.rb,
lib/chef-workflow-tasklib.rb
Instance Method Summary collapse
Methods included from ChefWorkflow::TaskHelper
Instance Method Details
#with_scheduler ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/chef-workflow/task-helpers/with_scheduler.rb', line 11 def with_scheduler if File.exist?(ChefWorkflow::KnifeSupport.knife_config_path) Chef::Config.from_file(ChefWorkflow::KnifeSupport.knife_config_path) s = ChefWorkflow::Scheduler.new yield s s.stop end end |