summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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