app/lib/actions/base.rb in foreman-tasks-0.2.2 vs app/lib/actions/base.rb in foreman-tasks-0.3.0

- old
+ new

@@ -13,12 +13,12 @@ # of Dynflow::Action::Presenter def task_output self.output end - # This method should return humanized description of the action, e.g. "Install Package" + # This method should return humanized description of the action, e.g. "Install package" def humanized_name - self.class.name[/\w+$/].gsub(/([a-z])([A-Z])/) { "#{$1} #{$2}" } + self.class.name.demodulize.underscore.humanize end # This method should return String of Array<String> describing input for the task def humanized_input task_input.pretty_inspect