Skip to content

Commit

Permalink
Remove a few comment lines and spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Feb 28, 2018
1 parent f03cb0d commit 18383c3
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions app/helpers/service_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ module ServiceHelper::TextualSummary
include TextualMixins::TextualName
include GenericObjectHelper::TextualSummary

#
# Groups
#

def textual_group_properties
TextualGroup.new(_("Properties"), %i(name description guid))
Expand Down Expand Up @@ -79,9 +77,8 @@ def textual_group_generic_objects
TextualGroup.new(_("Generic Objects"), %i(generic_object_instances))
end

#
# Items
#

def textual_guid
{:label => _("Management Engine GUID"), :value => @record.guid}
end
Expand Down Expand Up @@ -148,12 +145,10 @@ def textual_parent_service
def textual_orchestration_stack
ost = @record.try(:orchestration_stack)
if ost && !ost.id.present?
{
:label => _("Orchestration Stack"),
:image => "100/orchestration_stack.png",
:value => ost.name,
:title => _("Invalid Stack")
}
{:label => _("Orchestration Stack"),
:image => "100/orchestration_stack.png",
:value => ost.name,
:title => _("Invalid Stack")}
elsif ost
ost
end
Expand Down Expand Up @@ -284,12 +279,10 @@ def fetch_job(type)

def fetch_job_plays
items = @job.job_plays.sort_by(&:start_time).collect do |play|
[
play.name,
format_timezone(play.start_time),
format_timezone(play.finish_time),
play.finish_time && play.start_time ? calculate_elapsed_time(play.start_time, play.finish_time) : '/A'
]
[play.name,
format_timezone(play.start_time),
format_timezone(play.finish_time),
play.finish_time && play.start_time ? calculate_elapsed_time(play.start_time, play.finish_time) : '/A']
end.sort

TextualTable.new(
Expand Down

0 comments on commit 18383c3

Please sign in to comment.