Class: Serverkit::Actions::Apply
- Defined in:
- lib/serverkit/actions/apply.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Serverkit::Actions::Base
Instance Method Details
#call ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/serverkit/actions/apply.rb', line 6 def call recipe.resources.each do |resource| resource.backend = backend if resource.check puts "[SKIP] #{resource.id}" else resource.apply if resource.check puts "[DONE] #{resource.id}" else puts "[FAIL] #{resource.id}" end end end end |