class ForemanAdmin::Command

Public Class Methods

command_name(name = nil) click to toggle source
# File lib/foreman_admin/command.rb, line 4
def self.command_name(name = nil)
  @command_name = name if name
  @command_name
end
description(description = nil) click to toggle source
# File lib/foreman_admin/command.rb, line 13
def self.description(description = nil)
  @description = description if description
  @description
end

Public Instance Methods

command_name() click to toggle source
# File lib/foreman_admin/command.rb, line 9
def command_name
  self.class.command_name
end
description() click to toggle source
# File lib/foreman_admin/command.rb, line 18
def description
  self.class.description
end
execute() click to toggle source
# File lib/foreman_admin/command.rb, line 22
def execute
  # override me
end