summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-12-07 00:40:57 +0200
committerPaul Buetow <paul@buetow.org>2024-12-07 00:40:57 +0200
commitfb129404a88e6cb3617f985092b578bbe452bd18 (patch)
tree4cf17a2e99f3cd121130d04d425a8dcbe61eba17
parentbf5baf8891f0622f4e46571fa0ad990d7140b9d7 (diff)
playing
-rw-r--r--Rakefile2
-rw-r--r--lib/dslkeywords/file.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 8dff868..9b77690 100644
--- a/Rakefile
+++ b/Rakefile
@@ -24,7 +24,7 @@ end
desc 'foo task'
task :foo do
make_it_so do
- file '/tmp/test.txt' do
+ file :alias, '/tmp/test.txt' do
[ 'foo', 'bar', 'baz' ].sort
end
end
diff --git a/lib/dslkeywords/file.rb b/lib/dslkeywords/file.rb
index 8411d53..746b41c 100644
--- a/lib/dslkeywords/file.rb
+++ b/lib/dslkeywords/file.rb
@@ -72,6 +72,7 @@ module RCM
f = File.new(path)
f.content(f.instance_eval(&block))
self << f
+ f
end
end
end