Module: Berkshelf::Formatters::AbstractFormatter Abstract
- Extended by:
- ActiveSupport::Concern
- Included in:
- HumanReadable, JSON
- Defined in:
- lib/berkshelf/formatters.rb
Overview
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #cleanup_hook ⇒ Object
- #error(message) ⇒ Object
- #install(cookbook, version, location) ⇒ Object
- #msg(message) ⇒ Object
- #upload(cookbook, version, chef_server_url) ⇒ Object
- #use(cookbook, version, path = nil) ⇒ Object
Instance Method Details
#cleanup_hook ⇒ Object
72 73 74 |
# File 'lib/berkshelf/formatters.rb', line 72 def cleanup_hook # run after the task is finished end |
#error(message) ⇒ Object
92 93 94 |
# File 'lib/berkshelf/formatters.rb', line 92 def error() raise AbstractFunction, "#error must be implemented on #{self.class}" end |
#install(cookbook, version, location) ⇒ Object
76 77 78 |
# File 'lib/berkshelf/formatters.rb', line 76 def install(cookbook, version, location) raise AbstractFunction, "#install must be implemented on #{self.class}" end |
#msg(message) ⇒ Object
88 89 90 |
# File 'lib/berkshelf/formatters.rb', line 88 def msg() raise AbstractFunction, "#msg must be implemented on #{self.class}" end |
#upload(cookbook, version, chef_server_url) ⇒ Object
84 85 86 |
# File 'lib/berkshelf/formatters.rb', line 84 def upload(cookbook, version, chef_server_url) raise AbstractFunction, "#upload must be implemented on #{self.class}" end |
#use(cookbook, version, path = nil) ⇒ Object
80 81 82 |
# File 'lib/berkshelf/formatters.rb', line 80 def use(cookbook, version, path = nil) raise AbstractFunction, "#install must be implemented on #{self.class}" end |