-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from socrata-cookbooks/jdh-update-deps
Update deps
- Loading branch information
Showing
59 changed files
with
616 additions
and
865 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.3 |
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Encoding: UTF-8 | ||
# encoding: utf-8 | ||
# frozen_string_literal: true | ||
|
||
require 'rubygems' | ||
require 'English' | ||
|
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
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
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
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
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
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 |
---|---|---|
@@ -1,24 +1,28 @@ | ||
# Encoding: UTF-8 | ||
# encoding: utf-8 | ||
# frozen_string_literal: true | ||
|
||
name 'x2go-client' | ||
maintainer 'Jonathan Hartman' | ||
name 'x2go-client' | ||
maintainer 'Jonathan Hartman' | ||
maintainer_email 'jonathan.hartman@socrata.com' | ||
license 'apache2' | ||
description 'Installs/Configures x2go-client' | ||
license 'apache2' | ||
description 'Installs/Configures x2go-client' | ||
long_description 'Installs/Configures x2go-client' | ||
version '1.0.1' | ||
version '1.0.1' | ||
chef_version '>= 12.1' | ||
|
||
depends 'xquartz', '~> 1.1' | ||
depends 'dmg', '~> 2.2' | ||
depends 'windows', '~> 1.38' | ||
depends 'apt', '~> 3.0' | ||
depends 'yum-epel', '~> 0.6' | ||
source_url 'https://github.com/socrata-cookbooks/x2go-client' | ||
issues_url 'https://github.com/socrata-cookbooks/x2go-client/issues' | ||
|
||
supports 'mac_os_x' | ||
supports 'windows' | ||
supports 'ubuntu' | ||
supports 'debian' | ||
supports 'redhat' | ||
supports 'centos' | ||
supports 'scientific' | ||
supports 'fedora' | ||
depends 'xquartz', '~> 1.1' | ||
depends 'dmg', '~> 3.0' | ||
depends 'windows', '~> 2.0' | ||
depends 'yum-epel', '~> 1.0' | ||
|
||
supports 'mac_os_x' | ||
supports 'windows' | ||
supports 'ubuntu' | ||
supports 'debian' | ||
supports 'redhat' | ||
supports 'centos' | ||
supports 'scientific' | ||
supports 'fedora' |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Encoding: UTF-8 | ||
# encoding: utf-8 | ||
# frozen_string_literal: true | ||
|
||
require_relative '../spec_helper' | ||
|
||
|
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,25 @@ | ||
# encoding: utf-8 | ||
# frozen_string_literal: true | ||
|
||
require_relative 'spec_helper' | ||
|
||
shared_context 'resources' do | ||
%i(resource name platform platform_version action).each { |p| let(p) { nil } } | ||
let(:properties) { {} } | ||
let(:runner) do | ||
ChefSpec::SoloRunner.new( | ||
step_into: resource, platform: platform, version: platform_version | ||
) do |node| | ||
%i(resource name action).each do |p| | ||
next if send(p).nil? | ||
node.default['resource_test'][p] = send(p) | ||
end | ||
properties.each do |k, v| | ||
next if v.nil? | ||
node.default['resource_test']['properties'][k] = v | ||
end | ||
end | ||
end | ||
let(:converge) { runner.converge('resource_test') } | ||
let(:chef_run) { converge } | ||
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,42 @@ | ||
# encoding: utf-8 | ||
# frozen_string_literal: true | ||
|
||
require_relative '../resources' | ||
|
||
shared_context 'resources::x2go_client' do | ||
include_context 'resources' | ||
|
||
let(:resource) { 'x2go_client' } | ||
%i(source).each { |p| let(p) { nil } } | ||
let(:properties) { { source: source } } | ||
let(:name) { 'default' } | ||
|
||
shared_examples_for 'any platform' do | ||
context 'the default action (:create)' do | ||
shared_examples_for 'any property set' do | ||
it 'installs the x2go_client_app' do | ||
expect(chef_run).to install_x2go_client_app('default') | ||
.with(source: source) | ||
end | ||
end | ||
|
||
context 'the default properties' do | ||
it_behaves_like 'any property set' | ||
end | ||
|
||
context 'a source property' do | ||
let(:source) { 'https://example.com/x2go.pkg' } | ||
|
||
it_behaves_like 'any property set' | ||
end | ||
end | ||
|
||
context 'the :remove action' do | ||
let(:action) { :remove } | ||
|
||
it 'removes the x2go_client_app' do | ||
expect(chef_run).to remove_x2go_client_app('default') | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.