Class: Chef::Handler
- Inherits:
-
Object
- Object
- Chef::Handler
- Defined in:
- lib/chef/handler/elapsed_time.rb
Direct Known Subclasses
Defined Under Namespace
Classes: ElapsedTime
Instance Method Summary collapse
Instance Method Details
#full_name(resource) ⇒ Object
47 48 49 |
# File 'lib/chef/handler/elapsed_time.rb', line 47 def full_name(resource) "#{resource.resource_name}[#{resource.name}]" end |
#max_resource_length ⇒ Object
43 44 45 |
# File 'lib/chef/handler/elapsed_time.rb', line 43 def max_resource_length full_name(@max_resource).length end |
#unit_width ⇒ Object
39 40 41 |
# File 'lib/chef/handler/elapsed_time.rb', line 39 def unit_width @max_time/@config[:max_width] end |