assemble_std/tasks/
wrapper.rs

1//! The wrapper task
2
3use assemble_core::cryptography::Sha256;
4use assemble_core::lazy_evaluation::Prop;
5
6use assemble_core::task::initialize_task::InitializeTask;
7
8use assemble_core::task::up_to_date::UpToDate;
9use assemble_core::{BuildResult, Executable, Project, Task};
10use std::path::PathBuf;
11use url::Url;
12
13/// creates a script to download and then run the assemble distributable
14#[derive(Debug, CreateTask, TaskIO)]
15pub struct WrapperTask {
16    distribution_base: Prop<String>,
17    distribution_path: Prop<PathBuf>,
18    distribution_url: Prop<Url>,
19    distribution_sha256: Prop<Sha256>,
20}
21
22impl UpToDate for WrapperTask {}
23
24impl InitializeTask for WrapperTask {}
25
26impl Task for WrapperTask {
27    fn task_action(_task: &mut Executable<Self>, _project: &Project) -> BuildResult {
28        todo!()
29    }
30}