aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-01-12 21:45:40 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-01-12 21:45:40 +0900
commit398bf0d376b7d173ed37ef73f49f5dfe29f922ba (patch)
treea4ac06191b02cf1d6d1a69ddcc88b4eb1240d8bd
parent50c894964c6ed5adc8a2a21bfe0f99abbc8e996e (diff)
downloadpoe-398bf0d376b7d173ed37ef73f49f5dfe29f922ba.tar.gz
raise if sandbox is not built
-rw-r--r--config/initializers/sandbox.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/sandbox.rb b/config/initializers/sandbox.rb
new file mode 100644
index 0000000..7c09739
--- /dev/null
+++ b/config/initializers/sandbox.rb
@@ -0,0 +1,3 @@
+FileUtils.chdir(Rails.root.join("sandbox")) {
+ raise "Sandbox is not built" unless /'sandbox' is up to date./ =~ `make -n`
+}