summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Hobson2014-02-04 11:06:04 -0800
committerZack Hobson2014-02-04 11:06:04 -0800
commit81cf14f3239184bd22698059ece9902a730714d7 (patch)
tree15befb79623d0b8713a0bdee0fbca752f74ec455
parent2a2d0501f995cba900c26fc1a159e3c9235a329d (diff)
downloadhcl-81cf14f3239184bd22698059ece9902a730714d7.tar.bz2
Rakefile: add a task to ensure that the bundle is updated on release
-rw-r--r--Rakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 03a1a18..1a00069 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,6 +1,13 @@
require 'rubygems/tasks'
Gem::Tasks.new
+# I am dumb and keep forgetting to update the bundle before releasing
+task :update_bundle do
+ system("bundle")
+ system("git ci -am 'update gemfile.lock'")
+end
+task :release => :update_bundle
+
require 'fileutils'
task :clean do
FileUtils.rm_rf %w[ pkg coverage doc man/hcl.1 ]