Skip to content

Commit 1c0f951

Browse files
committed
converted to standardized pdk 1.3
1 parent edad52d commit 1c0f951

2 files changed

Lines changed: 37 additions & 50 deletions

File tree

Rakefile

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,2 @@
1-
require 'rake'
2-
require 'rspec/core/rake_task'
3-
4-
desc "Run all RSpec code examples"
5-
RSpec::Core::RakeTask.new(:rspec) do |t|
6-
t.rspec_opts = File.read("spec/spec.opts").chomp || ""
7-
end
8-
9-
SPEC_SUITES = (Dir.entries('spec') - ['.', '..','fixtures']).select {|e| File.directory? "spec/#{e}" }
10-
namespace :rspec do
11-
SPEC_SUITES.each do |suite|
12-
desc "Run #{suite} RSpec code examples"
13-
RSpec::Core::RakeTask.new(suite) do |t|
14-
t.pattern = "spec/#{suite}/**/*_spec.rb"
15-
t.rspec_opts = File.read("spec/spec.opts").chomp || ""
16-
end
17-
end
18-
end
19-
task :default => :rspec
20-
21-
begin
22-
if Gem::Specification::find_by_name('puppet-lint')
23-
require 'puppet-lint/tasks/puppet-lint'
24-
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
25-
task :default => [:rspec, :lint]
26-
end
27-
rescue Gem::LoadError
28-
end
1+
require 'puppetlabs_spec_helper/rake_tasks'
2+
require 'puppet-syntax/tasks/puppet-syntax'

metadata.json

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,44 @@
11
{
2+
"name": "dsestero-java",
3+
"version": "2.0.0",
24
"author": "Dario Sestero",
3-
"dependencies": [ {
5+
"summary": "Install Java OpenJDK and configure the default java alternative",
6+
"license": "Apache-2.0",
7+
"source": "https://github.com/dsestero/java.git",
8+
"project_page": "https://github.com/dsestero/java",
9+
"issues_url": "https://github.com/dsestero/java/issues",
10+
"dependencies": [
11+
{
412
"name": "puppetlabs/apt",
513
"version_requirement": "2.x"
614
}
715
],
8-
"license": "Apache-2.0",
9-
"name": "dsestero-java",
10-
"project_page": "https://github.com/dsestero/java",
11-
"issues_url": "https://github.com/dsestero/java/issues",
12-
"source": "https://github.com/dsestero/java.git",
13-
"summary": "Install Java OpenJDK and configure the default java alternative",
14-
"requirements": [{"name": "puppet", "version_requirement": ">= 4.0.0"}],
1516
"operatingsystem_support": [
16-
{
17-
"operatingsystem": "Ubuntu"
18-
},
19-
{
20-
"operatingsystem": "Debian"
21-
},
22-
{
23-
"operatingsystem": "RedHat"
24-
},
25-
{
26-
"operatingsystem": "CentOS"
27-
}
17+
{
18+
"operatingsystem": "Ubuntu"
19+
},
20+
{
21+
"operatingsystem": "Debian"
22+
},
23+
{
24+
"operatingsystem": "RedHat"
25+
},
26+
{
27+
"operatingsystem": "CentOS"
28+
}
29+
],
30+
"requirements": [
31+
{
32+
"name": "puppet",
33+
"version_requirement": ">= 4.0.0"
34+
}
35+
],
36+
"tags": [
37+
"java",
38+
"jee",
39+
"jvm",
40+
"middleware"
2841
],
29-
"tags": ["java", "jee", "jvm", "middleware"],
30-
"version": "2.0.0"
42+
"template-url": "file:///opt/puppetlabs/pdk/share/cache/pdk-templates.git",
43+
"template-ref": "1.3.0-0-g632fa63"
3144
}

0 commit comments

Comments
 (0)