Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created November 19, 2014 00:56
Show Gist options
  • Save adamhjk/3efdd5a60d36bc5d519c to your computer and use it in GitHub Desktop.
Save adamhjk/3efdd5a60d36bc5d519c to your computer and use it in GitHub Desktop.
Chef in rust
extern crate chef;
use chef::{client};
use chef::resource::{Package, Service, Template};
// Total Strawman
fn main() {
let mut chef = client.new();
chef.r(
Package{
name: "apache2"
}
);
}
// With Macros
fn main() {
r!(Package{
name: "apache2"
});
}
// Even shorter
fn main() {
package!(name: "apache2");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment