Permalink
Browse files

use all property helpers

Change-Id: I66ea03c22162cd50917488de61cdda15c692a5a4
  • Loading branch information...
pmenglund committed Nov 29, 2012
1 parent ddf48f6 commit 3c3af95e90e0712d947a5226ef33d0d9c64433b9
Showing with 12 additions and 1 deletion.
  1. +6 −0 jobs/batlight/spec
  2. +5 −0 jobs/batlight/templates/properties.erb
  3. +1 −1 packages/batarang/packaging
View
@@ -5,10 +5,16 @@ properties:
batlight.fail:
default: nope
description: Simulate failure at component
+ batlight.dummy:
+ description: Used to test properties without a default
+ batlight.default:
+ default: yes
+ description: Used to test properties with a default that will evaluate to true
templates:
batlight_ctl.erb: bin/batlight_ctl
drain: bin/drain
+ properties.erb: config/properties
packages:
- batlight
@@ -0,0 +1,5 @@
+<%= p("batlight.dummy", "foo") %>
+<%= p("batlight.default") %>
+<% if_p("batlight.default", "batlight.fail") do |d, f| %>
+both
+<% end %>
@@ -4,4 +4,4 @@ set -e
cp -a batarang/* ${BOSH_INSTALL_TARGET}
cd ${BOSH_INSTALL_TARGET}
-/var/vcap/packages/ruby/bin/bundle --local install --deployment --without=development test
+/var/vcap/packages/ruby/bin/bundle install --local --deployment --without=development test

0 comments on commit 3c3af95

Please sign in to comment.