summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/cli/Justfile17
-rw-r--r--examples/gem/Gemfile.lock2
-rw-r--r--examples/gem/Justfile15
-rw-r--r--examples/plain_ruby/Justfile11
-rw-r--r--examples/rake/Justfile15
5 files changed, 59 insertions, 1 deletions
diff --git a/examples/cli/Justfile b/examples/cli/Justfile
new file mode 100644
index 0000000..4c81601
--- /dev/null
+++ b/examples/cli/Justfile
@@ -0,0 +1,17 @@
+rcm := "../../bin/rcm"
+
+# Apply configuration
+run:
+ {{rcm}} config.rb
+
+# Dry run — show what would change without making changes
+dry:
+ {{rcm}} config.rb --dry
+
+# Verbose output
+debug:
+ {{rcm}} config.rb --debug
+
+# Limit execution to specific hosts (comma-separated, e.g. just hosts earth,mars)
+hosts target:
+ {{rcm}} config.rb --hosts {{target}}
diff --git a/examples/gem/Gemfile.lock b/examples/gem/Gemfile.lock
index 502fccc..f426524 100644
--- a/examples/gem/Gemfile.lock
+++ b/examples/gem/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../..
specs:
- rcm (0.1.0)
+ rcm (0.1.1)
erb
toml (~> 0.3)
diff --git a/examples/gem/Justfile b/examples/gem/Justfile
new file mode 100644
index 0000000..005267f
--- /dev/null
+++ b/examples/gem/Justfile
@@ -0,0 +1,15 @@
+# Install gem dependencies
+setup:
+ bundle install
+
+# Apply configuration
+run:
+ bundle exec ruby config.rb
+
+# Dry run — show what would change without making changes
+dry:
+ bundle exec ruby config.rb --dry
+
+# Verbose output
+debug:
+ bundle exec ruby config.rb --debug
diff --git a/examples/plain_ruby/Justfile b/examples/plain_ruby/Justfile
new file mode 100644
index 0000000..c758519
--- /dev/null
+++ b/examples/plain_ruby/Justfile
@@ -0,0 +1,11 @@
+# Apply configuration
+run:
+ ruby config.rb
+
+# Dry run — show what would change without making changes
+dry:
+ ruby config.rb --dry
+
+# Verbose output
+debug:
+ ruby config.rb --debug
diff --git a/examples/rake/Justfile b/examples/rake/Justfile
new file mode 100644
index 0000000..e25852a
--- /dev/null
+++ b/examples/rake/Justfile
@@ -0,0 +1,15 @@
+# Install gem dependencies
+setup:
+ bundle install
+
+# Apply configuration
+run:
+ rake setup
+
+# Dry run — show what would change without making changes
+dry:
+ rake setup -- --dry
+
+# Verbose output
+debug:
+ rake setup -- --debug