This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding missing tempalte. updating test-kitchen harness
- Loading branch information
Sean OMeara
committed
Dec 20, 2013
1 parent
b30ccd8
commit c31e36e
Showing
3 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'berkshelf', '~> 2.0' | ||
gem 'chefspec', '~> 3.0' | ||
gem 'foodcritic', '~> 3.0' | ||
gem 'rubocop' | ||
|
||
group :integration do | ||
gem 'test-kitchen', '~> 1.0' | ||
gem 'kitchen-vagrant', '~> 0.11' | ||
gem 'kitchen-digitalocean' | ||
gem 'kitchen-ec2' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/sh | ||
This comment has been minimized.
Sorry, something went wrong. |
||
# | ||
### BEGIN INIT INFO | ||
# Provides: <%= @service_name %> | ||
# Required-Start: bar | ||
# Defalt-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 2 6 | ||
# Description: Bluepill loader for <%= @service_name %> | ||
### END INIT INFO | ||
|
||
BLUEPILL_BIN=<%= node['bluepill']['bin'] %> | ||
BLUEPILL_CONFIG=<%= @config_file %> | ||
SERVICE_NAME=<%= @service_name %> | ||
|
||
case "$1" in | ||
start) | ||
echo "Loading bluepill configuration for $SERVICE_NAME " | ||
$BLUEPILL_BIN load $BLUEPILL_CONFIG | ||
;; | ||
stop) | ||
$BLUEPILL_BIN $SERVICE_NAME stop | ||
$BLUEPILL_BIN $SERVICE_NAME quit | ||
;; | ||
restart) | ||
$BLUEPILL_BIN $SERVICE_NAME restart | ||
;; | ||
status) | ||
$BLUEPILL_BIN $SERVICE_NAME status | ||
;; | ||
*) | ||
echo "Usage: $0 {start|stop|restart}" | ||
exit 1 | ||
;; | ||
esac |
2 comments
on commit c31e36e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry about that... got mixed up in my workflow. I can isolate it, but it would require a force push at this point.
can I send you some Chef swag as an apology?
=)
-s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no problem - thanks for the merge :)
This is from #15 and I think it should have been a separate commit..