src/app_installer.cc
src/context_installer.cc
src/step/step_unzip.cc
- src/step/signature_step.cc
+ src/step/step_signature.cc
src/utils.cc
)
# Target - definition
// Use of this source code is governed by an apache 2.0 license that can be
// found in the LICENSE file.
-#ifndef COMMON_STEP_SIGNATURE_SIGNATURE_STEP_H_
-#define COMMON_STEP_SIGNATURE_SIGNATURE_STEP_H_
+#ifndef COMMON_STEP_STEP_SIGNATURE_H_
+#define COMMON_STEP_STEP_SIGNATURE_H_
#include "context_installer.h"
#include "step.h"
namespace common {
-class SignatureStep : public Step {
+class StepSignature : public Step {
public:
using Step::Step;
} // namespace common
-#endif // COMMON_STEP_SIGNATURE_SIGNATURE_STEP_H_
+#endif // COMMON_STEP_STEP_SIGNATURE_H_
// Use of this source code is governed by an apache 2.0 license that can be
// found in the LICENSE file.
-#include <step/signature_step.h>
+#include <step/step_signature.h>
#include <boost/filesystem/path.hpp>
namespace common {
-int SignatureStep::process(ContextInstaller* context) {
+int StepSignature::process(ContextInstaller* context) {
return (signature::SignatureValidator::Check(bf::path(context->unpack_directory()))
== signature::SignatureValidator::INVALID) ? -1 : 0;
}
#include "include/app_installer.h"
#include "include/step/step_unzip.h"
-#include "include/step/signature_step.h"
+#include "include/step/step_signature.h"
int main(int argc, char **argv) {
/* get request data */
Installer->AddStep(step_unpack);
// FIXME: unique_ptr because steps are not freed in installer.
- std::unique_ptr<common::SignatureStep> signature_step(
- new common::SignatureStep);
- Installer->AddStep(signature_step.get());
+ std::unique_ptr<common::StepSignature> step_signature(
+ new common::StepSignature);
+ Installer->AddStep(step_signature.get());
Installer->Run();
break;