Skip to content

Commit

Permalink
Switch to Berkshelf, clean up dependencies and deprecated ChefSpec st…
Browse files Browse the repository at this point in the history
…uff.
  • Loading branch information
flatrocks committed Feb 6, 2015
1 parent 1e2d717 commit 8bf5f44
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
pkg/

# Berkshelf
.vagrant
/cookbooks
Berksfile.lock

# Bundler
Gemfile.lock
bin/*
.bundle/*

4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
license 'GNU Library General Public License, version 2.0'
description 'Installs/Configures logwatch_restart'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
version '0.2.0'

depends 'logwatch'
depends 'logwatch', '~> 1.1'
2 changes: 1 addition & 1 deletion spec/recipes/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require_relative '../spec_helper'

describe 'restart_watch::default' do
subject { ChefSpec::Runner.new.converge(described_recipe) }
subject { ChefSpec::SoloRunner.new.converge(described_recipe) }

describe 'the conf file' do
let(:filename) {'/etc/logwatch/conf/services/restart.conf'}
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'chefspec'
require 'chefspec/librarian'
require 'chefspec/berkshelf'

RSpec.configure do |config|
config.platform = 'ubuntu'
Expand Down

0 comments on commit 8bf5f44

Please sign in to comment.