Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9117329b42d2
Choose a base ref
...
head repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1ff84cbc8aa8
Choose a head ref
  • 3 commits
  • 6 files changed
  • 1 contributor

Commits on Jun 20, 2014

  1. add missing dependancies

    dwradcliffe committed Jun 20, 2014
    Copy the full SHA
    69d4fae View commit details
  2. cleanup

    dwradcliffe committed Jun 20, 2014
    Copy the full SHA
    d491f54 View commit details
  3. add Rakefile for testing

    dwradcliffe committed Jun 20, 2014
    Copy the full SHA
    1ff84cb View commit details
6 changes: 4 additions & 2 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -176,7 +176,8 @@ GRAPH
chef-vault (>= 0.0.0)
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-bastion (0.0.4)
rubygems-bastion (0.0.5)
chef-vault (>= 0.0.0)
duo-security (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-cache (0.0.1)
@@ -203,7 +204,8 @@ GRAPH
rubygems-sensu (>= 0.0.0)
rubygems-motd (0.0.7)
motd (>= 0.0.0)
rubygems-notify (0.0.2)
rubygems-notify (0.0.3)
chef-vault (>= 0.0.0)
slack_handler (>= 0.0.0)
rubygems-ntp (0.0.1)
ntp (>= 0.0.0)
37 changes: 37 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
require 'rubocop/rake_task'
require 'foodcritic'
require 'rspec/core/rake_task'

desc 'Run RuboCop style and lint checks'
RuboCop::RakeTask.new(:rubocop)

desc 'Run Foodcritic lint checks'
FoodCritic::Rake::LintTask.new(:foodcritic) do |t|
t.options = {
fail_tags: ['any'],
cookbook_paths: 'cookbooks',
tags: [
'~FC003',
'~FC011'
]
}
end

desc 'Run ChefSpec examples'
RSpec::Core::RakeTask.new(:spec)

desc 'Run all tests'
task :test => [:rubocop, :foodcritic, :spec]
task :default => :test
task :lint => :foodcritic

begin
require 'kitchen/rake_tasks'
Kitchen::RakeTasks.new

desc 'Alias for kitchen:all'
task :integration => 'kitchen:all'
task :test_all => [:test, :integration]
rescue LoadError
puts '>>>>> Kitchen gem not loaded, omitting tasks' unless ENV['CI']
end
3 changes: 2 additions & 1 deletion cookbooks/rubygems-bastion/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name 'rubygems-bastion'
maintainer 'RubyGems.org ops team'

version '0.0.4'
version '0.0.5'

depends 'chef-vault'
depends 'duo-security'
depends 'rubygems'

2 changes: 1 addition & 1 deletion cookbooks/rubygems-hostname/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Recipe:: default
#

node.default['set_fqdn'] = node['name']
node.default['set_fqdn'] = node.name

include_recipe 'hostname'

3 changes: 2 additions & 1 deletion cookbooks/rubygems-notify/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name 'rubygems-notify'
maintainer 'RubyGems.org ops team'

version '0.0.2'
version '0.0.3'

depends 'chef-vault'
depends 'slack_handler'

supports 'ubuntu'
5 changes: 5 additions & 0 deletions cookbooks/rubygems-people/recipes/samkottler.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#
# Cookbook Name:: rubygems-people
# Recipe:: samkottler
#

home = '/home/samkottler'

directory "#{home}/src" do