Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
use pleaserun for services, cleanup of testing, remove zeromq/rabbit …
Browse files Browse the repository at this point in the history
…BS, move templates
  • Loading branch information
paulczar committed Mar 16, 2014
1 parent d5c950b commit 505d923
Show file tree
Hide file tree
Showing 27 changed files with 555 additions and 488 deletions.
9 changes: 9 additions & 0 deletions .rubocop.yml
Expand Up @@ -17,3 +17,12 @@ LineLength:
MethodLength:
Enabled: true
Max: 20

AccessorMethodName:
Enabled: false

ClassAndModuleChildren:
Enabled: false

UselessAssignment:
Enabled: false
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,7 +1,7 @@
language: ruby
gemfile:
- test/support/Gemfile
rvm:
- 1.9.3
install: BUNDLE_GEMFILE=$PWD/test/support/Gemfile bundle install
script: BUNDLE_GEMFILE=$PWD/test/support/Gemfile bundle exec rake strainer
install: bundle install
script: bundle exec berks install
script: bundle exec rake style spec
1 change: 1 addition & 0 deletions Berksfile
Expand Up @@ -4,6 +4,7 @@ metadata

cookbook 'rabbitmq', git: 'git://github.com/opscode-cookbooks/rabbitmq.git'
cookbook 'java'
cookbook 'pleaserun', git: 'https://github.com/paulczar/chef-pleaserun.git'

group :test do
cookbook 'minitest-handler', git: 'git://github.com/btm/minitest-handler-cookbook.git'
Expand Down
24 changes: 23 additions & 1 deletion Gemfile
Expand Up @@ -2,4 +2,26 @@

source 'https://rubygems.org'

gem 'berkshelf'
gem 'chefspec', '~> 3.2'
gem 'foodcritic', '~> 3.0'
gem 'rubocop', '~> 0.18'
gem 'chef', '~> 11.8'
gem 'berkshelf', '~> 2.0'
gem 'test-kitchen', '~> 1.1'
gem 'serverspec', '~> 0.14'
gem 'rake'

group :chef_gems do
gem 'pleaserun'
end

group :development do
gem 'guard', '~> 1.8'
gem 'guard-rubocop', '~> 0.2'
gem 'guard-foodcritic'
end

group :infinite_loop_solver do
gem 'celluloid', '~> 0.14'
gem 'celluloid-io', '~> 0.14'
end
224 changes: 199 additions & 25 deletions Gemfile.lock
@@ -1,19 +1,23 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.15)
activesupport (3.2.17)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
addressable (2.3.5)
akami (1.2.0)
akami (1.2.1)
gyoku (>= 0.4.0)
nokogiri (>= 1.4.0)
berkshelf (2.0.10)
nokogiri
ast (1.1.0)
atomic (1.1.15)
avl_tree (1.1.3)
berkshelf (2.0.14)
activesupport (~> 3.2.0)
addressable (~> 2.3.4)
buff-shell_out (~> 0.1)
chozo (>= 0.6.1)
faraday (>= 0.8.5)
faraday (~> 0.8.0)
faraday (~> 0.8.5)
hashie (>= 2.0.2)
minitar (~> 0.5.4)
rbzip2 (~> 0.2.0)
Expand All @@ -25,54 +29,173 @@ GEM
buff-extensions (~> 0.3)
varia_model (~> 0.1)
buff-extensions (0.5.0)
buff-ignore (1.1.0)
buff-ignore (1.1.1)
buff-ruby_engine (0.1.0)
buff-shell_out (0.1.1)
buff-ruby_engine (~> 0.1.0)
builder (3.2.2)
cabin (0.6.1)
celluloid (0.14.1)
timers (>= 1.0.0)
celluloid-io (0.14.1)
celluloid (>= 0.14.1)
nio4r (>= 0.4.5)
chef (11.10.4)
chef-zero (~> 1.7, >= 1.7.2)
diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7)
highline (~> 1.6, >= 1.6.9)
json (>= 1.4.4, <= 1.8.1)
mime-types (~> 1.16)
mixlib-authentication (~> 1.3)
mixlib-cli (~> 1.4)
mixlib-config (~> 2.0)
mixlib-log (~> 1.3)
mixlib-shellout (~> 1.3)
net-ssh (~> 2.6)
net-ssh-multi (~> 1.1)
ohai (~> 6.0)
pry (~> 0.9)
puma (~> 1.6)
rest-client (>= 1.0.4, < 1.7.0)
yajl-ruby (~> 1.1)
chef-zero (1.7.3)
hashie (~> 2.0)
json
mixlib-log (~> 1.3)
moneta (< 0.7.0)
rack
chefspec (3.4.0)
chef (~> 11.0)
fauxhai (~> 2.0)
rspec (~> 2.14)
chozo (0.6.1)
activesupport (>= 3.2.0)
hashie (>= 2.0.2)
multi_json (>= 1.3.0)
clamp (0.6.3)
coderay (1.1.0)
diff-lcs (1.2.5)
erubis (2.7.0)
faraday (0.8.8)
faraday (0.8.9)
multipart-post (~> 1.2.0)
ffi (1.9.0)
fauxhai (2.1.0)
net-ssh
ohai
ffi (1.9.3)
foodcritic (3.0.3)
erubis
gherkin (~> 2.11.7)
nokogiri (~> 1.5.4)
rake
treetop (~> 1.4.10)
yajl-ruby (~> 1.1.0)
formatador (0.2.4)
gherkin (2.11.8)
multi_json (~> 1.3)
gssapi (1.0.3)
ffi (>= 1.0.1)
gyoku (1.1.0)
guard (1.8.3)
formatador (>= 0.2.4)
listen (~> 1.3)
lumberjack (>= 1.0.2)
pry (>= 0.9.10)
thor (>= 0.14.6)
guard-foodcritic (1.0.2)
foodcritic (>= 1.3, < 4.0)
guard (>= 1.0, < 3.0)
guard-rubocop (0.2.2)
guard (~> 1.8)
rubocop (~> 0.10)
gyoku (1.1.1)
builder (>= 2.1.2)
hashie (2.0.5)
highline (1.6.21)
hitimes (1.2.1)
httpclient (2.3.4.1)
httpi (0.9.7)
rack
i18n (0.6.5)
json (1.7.7)
i18n (0.6.9)
insist (1.0.0)
ipaddress (0.8.0)
json (1.8.1)
listen (1.3.1)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
rb-kqueue (>= 0.2)
little-plugger (1.1.3)
logging (1.8.1)
logging (1.8.2)
little-plugger (>= 1.1.3)
multi_json (>= 1.3.6)
mini_portile (0.5.2)
multi_json (>= 1.8.4)
lumberjack (1.0.4)
method_source (0.8.2)
metriks (0.9.9.6)
atomic (~> 1.0)
avl_tree (~> 1.1.2)
hitimes (~> 1.1)
mime-types (1.25.1)
minitar (0.5.4)
mixlib-authentication (1.3.0)
mixlib-log
mixlib-cli (1.4.0)
mixlib-config (2.1.0)
mixlib-log (1.6.0)
multi_json (1.8.2)
mixlib-shellout (1.3.0)
moneta (0.6.0)
multi_json (1.9.0)
multipart-post (1.2.0)
net-http-persistent (2.9)
net-ssh (2.7.0)
nio4r (0.5.0)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
mustache (0.99.5)
net-http-persistent (2.9.4)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.8.0)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-multi (1.2.0)
net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0)
nio4r (1.0.0)
nokogiri (1.5.11)
nori (1.1.5)
ohai (6.20.0)
ipaddress
mixlib-cli
mixlib-config
mixlib-log
mixlib-shellout
systemu (~> 2.5.2)
yajl-ruby
parser (2.1.7)
ast (~> 1.1)
slop (~> 3.4, >= 3.4.5)
pleaserun (0.0.4)
cabin (> 0)
cabin
clamp
insist
mustache
ohai (~> 6.20)
stud
polyglot (0.3.4)
powerpack (0.0.9)
pry (0.9.12.6)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
puma (1.6.3)
rack (~> 1.2)
rack (1.5.2)
rainbow (2.0.0)
rake (10.1.1)
rb-fsevent (0.9.4)
rb-inotify (0.9.3)
ffi (>= 0.5.0)
rb-kqueue (0.2.2)
ffi (>= 0.5.0)
rbzip2 (0.2.0)
retryable (1.3.3)
rest-client (1.6.7)
mime-types (>= 1.16)
retryable (1.3.5)
ridley (1.5.3)
addressable
buff-config (~> 0.2)
Expand All @@ -93,7 +216,23 @@ GEM
solve (>= 0.4.4)
varia_model (~> 0.1)
winrm (~> 1.1.0)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.6)
rubocop (0.19.0)
json (>= 1.7.7, < 2)
parser (~> 2.1.7)
powerpack (~> 0.0.6)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.4)
ruby-progressbar (1.4.2)
rubyntlm (0.1.1)
safe_yaml (1.0.1)
savon (0.9.5)
akami (~> 1.0)
builder (>= 2.1.2)
Expand All @@ -102,11 +241,32 @@ GEM
nokogiri (>= 1.4.0)
nori (~> 1.0)
wasabi (~> 1.0)
solve (0.8.1)
serverspec (0.15.4)
highline
net-ssh
rspec (>= 2.13.0)
specinfra (>= 0.7.1)
slop (3.5.0)
solve (0.8.2)
specinfra (0.7.1)
stud (0.0.17)
ffi
metriks
systemu (2.5.2)
test-kitchen (1.2.1)
mixlib-shellout (~> 1.2)
net-scp (~> 1.1)
net-ssh (~> 2.7)
safe_yaml (~> 1.0)
thor (~> 0.18)
thor (0.18.1)
timers (1.1.0)
timers (2.0.0)
hitimes
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
uuidtools (2.1.4)
varia_model (0.2.0)
varia_model (0.3.2)
buff-extensions (~> 0.2)
hashie (>= 2.0.2)
wasabi (1.0.0)
Expand All @@ -119,9 +279,23 @@ GEM
rubyntlm (~> 0.1.1)
savon (= 0.9.5)
uuidtools (~> 2.1.2)
yajl-ruby (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
berkshelf
berkshelf (~> 2.0)
celluloid (~> 0.14)
celluloid-io (~> 0.14)
chef (~> 11.8)
chefspec (~> 3.2)
foodcritic (~> 3.0)
guard (~> 1.8)
guard-foodcritic
guard-rubocop (~> 0.2)
pleaserun
rake
rubocop (~> 0.18)
serverspec (~> 0.14)
test-kitchen (~> 1.1)
14 changes: 14 additions & 0 deletions Guardfile
@@ -0,0 +1,14 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

guard :rubocop do
watch(%r{.+\.rb$})
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

guard "foodcritic" do
watch(%r{attributes/.+\.rb$})
watch(%r{providers/.+\.rb$})
watch(%r{recipes/.+\.rb$})
watch(%r{resources/.+\.rb$})
end

0 comments on commit 505d923

Please sign in to comment.