Skip to main content

adapter_for

Function adapter_for 

Source
pub fn adapter_for(target: Target) -> Box<dyn DeployAdapter>
Expand description

Returns the adapter implementation for a given Target.

ยงExamples

use ssg::deploy_adapter::{adapter_for, Target};

let a = adapter_for(Target::None);
assert_eq!(a.name(), "none");