Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoblon committed Feb 27, 2020
1 parent a674906 commit d98e063
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 19 deletions.
31 changes: 20 additions & 11 deletions rudder-lang/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
build:
# check for cargo, perl, cpan, pip, pip3 install
# sudo cpan TOML
# pip3 install toml
cargo build
.DEFAULT_GOAL := build

cargo:
curl https://sh.rustup.rs -sSf | sh -s -- -y

deps:
apt update && apt upgrade -y
apt install -y python3-pip perl
perl -MCPAN -e 'install TOML::Parser'
pip3 install toml

build: deps
perl tools/generate-lib
cargo build --release

test:
cargo test
cargo test

doc:
cargo doc --help
cargo doc --help

stats:
@ echo -n "TODOS : " && grep -r TODO src | wc -l
@ echo -n "Commits: " && git log --oneline | wc -l
@ tokei
# @ echo "Lines : " && find . -name '*.rs' | xargs wc -l
@ echo -n "TODOS : " && grep -r TODO src | wc -l
@ echo -n "Commits: " && git log --oneline | wc -l
@ tokei
# @ echo "Lines : " && find . -name '*.rs' | xargs wc -l
16 changes: 8 additions & 8 deletions rudder-lang/libs/stdlib.rl
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
@format=0


resource group(p0)
resource service(p0)
resource http(p0)
resource command(p0)
resource environment(p0)
resource monitoring(p0)
resource condition(p0)
resource kernel_module(p0)
resource variable(p0,p1)
resource package(p0)
resource sharedfile(p0)
resource file(p0)
resource sharedfile(p0)
resource directory(p0)
resource schedule(p0)
resource permissions(p0)
resource environment(p0)
resource http(p0)
resource condition(p0)
resource variable(p0,p1)
resource package(p0)
resource kernel_module(p0)
resource user(p0)
resource group(p0)

command state execution(){}
command state execution_once(p1,p2,p3){}
Expand Down

0 comments on commit d98e063

Please sign in to comment.