Skip to content

Commit

Permalink
Merge pull request #6 from socrata-cookbooks/jdh-custom-resources
Browse files Browse the repository at this point in the history
Update APT and convert to custom resources
  • Loading branch information
hartmantis committed Mar 4, 2016
2 parents dbd3dba + 0b83bd8 commit 9cc54e2
Show file tree
Hide file tree
Showing 62 changed files with 1,224 additions and 1,504 deletions.
4 changes: 2 additions & 2 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ suites:
- name: default
run_list:
- recipe[x2go-client]
- name: uninstall
- name: remove
run_list:
- recipe[x2go-client_test::uninstall]
- recipe[x2go-client_test::remove]
11 changes: 10 additions & 1 deletion Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@ source 'https://supermarket.chef.io'

metadata

cookbook 'x2go-client_test', path: 'test/fixtures/cookbooks/x2go-client_test'
group :unit do
cookbook 'resource_x2go_client_test',
path: 'spec/support/cookbooks/resource_x2go_client_test'
cookbook 'resource_x2go_client_app_test',
path: 'spec/support/cookbooks/resource_x2go_client_app_test'
end

group :integration do
cookbook 'x2go-client_test', path: 'test/fixtures/cookbooks/x2go-client_test'
end
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
X2go Client Cookbook CHANGELOG
==============================

v?.?.? (????-??-??)
-------------------
Unreleased
----------
- Update apt dependency from 2.x to 3.x
- Convert everything to Chef 12.5 custom resources

v0.2.0 (2015-09-28)
-------------------
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ group :test do
gem 'test-kitchen'
gem 'kitchen-vagrant'
gem 'winrm-transport'
gem 'winrm-fs'
gem 'kitchen-docker'
gem 'kitchen-localhost'
end
Expand Down
21 changes: 9 additions & 12 deletions libraries/matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,16 @@
#

if defined?(ChefSpec)
[:x2go_client, :x2go_client_app].each do |m|
ChefSpec.define_matcher(m)
end

[:create, :remove].each do |a|
define_method("#{a}_x2go_client") do |name|
ChefSpec::Matchers::ResourceMatcher.new(:x2go_client, a, name)
end
end
{
x2go_client: %i(create remove),
x2go_client_app: %i(install remove)
}.each do |matcher, actions|
ChefSpec.define_matcher(matcher)

[:install, :remove].each do |a|
define_method("#{a}_x2go_client_app") do |name|
ChefSpec::Matchers::ResourceMatcher.new(:x2go_client_app, a, name)
actions.each do |action|
define_method("#{action}_#{matcher}") do |name|
ChefSpec::Matchers::ResourceMatcher.new(matcher, action, name)
end
end
end
end
87 changes: 0 additions & 87 deletions libraries/provider_x2go_client_app.rb

This file was deleted.

77 changes: 0 additions & 77 deletions libraries/provider_x2go_client_app_debian.rb

This file was deleted.

55 changes: 0 additions & 55 deletions libraries/provider_x2go_client_app_fedora.rb

This file was deleted.

83 changes: 0 additions & 83 deletions libraries/provider_x2go_client_app_mac_os_x.rb

This file was deleted.

Loading

0 comments on commit 9cc54e2

Please sign in to comment.