diff options
Diffstat (limited to 'subplot')
-rw-r--r-- | subplot/bumper.py | 4 | ||||
-rw-r--r-- | subplot/bumper.yaml | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/subplot/bumper.py b/subplot/bumper.py index 3edad5e..3c2f8fd 100644 --- a/subplot/bumper.py +++ b/subplot/bumper.py @@ -11,6 +11,10 @@ def install_bumper(ctx): runcmd_prepend_to_path(ctx, dirname=os.path.join(srcdir, "target", "debug")) +def chmod_exec(ctx, filename=None): + os.chmod(filename, 0o755) + + def git_init_and_commit_everything(ctx, dirname=None): runcmd_run = globals()["runcmd_run"] runcmd_exit_code_is_zero = globals()["runcmd_exit_code_is_zero"] diff --git a/subplot/bumper.yaml b/subplot/bumper.yaml index 6109c59..83aae28 100644 --- a/subplot/bumper.yaml +++ b/subplot/bumper.yaml @@ -1,6 +1,9 @@ - given: "an installed Bumper" function: install_bumper +- given: "file {filename} is executable" + function: chmod_exec + - given: "all files in {dirname} are committed to git" function: git_init_and_commit_everything |