Class: Berkshelf::API::CacheBuilder::Worker::Base
- Inherits:
-
Object
- Object
- Berkshelf::API::CacheBuilder::Worker::Base
- Includes:
- Logging, Mixin::Services, Celluloid
- Defined in:
- lib/berkshelf/api/cache_builder/worker.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
Class Method Summary collapse
Instance Method Summary collapse
-
#cookbooks ⇒ Array<RemoteCookbook>
abstract
The list of cookbooks this builder can find.
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #metadata(remote) ⇒ Ridley::Chef::Cookbook::Metadata abstract
- #to_s ⇒ String
Methods included from Mixin::Services
Methods included from Logging
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
21 22 23 |
# File 'lib/berkshelf/api/cache_builder/worker.rb', line 21 def initialize( = {}) @priority = [:priority] end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
18 19 20 |
# File 'lib/berkshelf/api/cache_builder/worker.rb', line 18 def @options end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
19 20 21 |
# File 'lib/berkshelf/api/cache_builder/worker.rb', line 19 def priority @priority end |
Class Method Details
Instance Method Details
#cookbooks ⇒ Array<RemoteCookbook>
This method is abstract.
Returns The list of cookbooks this builder can find.
43 44 45 |
# File 'lib/berkshelf/api/cache_builder/worker.rb', line 43 def cookbooks raise RuntimeError, "must be implemented" end |
#metadata(remote) ⇒ Ridley::Chef::Cookbook::Metadata
This method is abstract.
35 36 37 |
# File 'lib/berkshelf/api/cache_builder/worker.rb', line 35 def (remote) raise RuntimeError, "must be implemented" end |
#to_s ⇒ String
26 27 28 |
# File 'lib/berkshelf/api/cache_builder/worker.rb', line 26 def to_s friendly_name end |