blob: 4fc9462810cd0ba8ec32c592e7f923823081c891 [file] [log] [blame]
#pragma once
#include "status.hpp"
#include <memory>
namespace ipmi_flash
{
// This type will just return success upon trigger(), and even before calling
// trigger.
class SkipAction : public TriggerableActionInterface
{
public:
static std::unique_ptr<TriggerableActionInterface> CreateSkipAction();
SkipAction() = default;
~SkipAction() = default;
// Disallow copy and assign.
SkipAction(const SkipAction&) = delete;
SkipAction& operator=(const SkipAction&) = delete;
SkipAction(SkipAction&&) = default;
SkipAction& operator=(SkipAction&&) = default;
bool trigger() override;
void abort() override;
ActionStatus status() override;
};
} // namespace ipmi_flash