Modify template for whatpulse
This commit is contained in:
parent
a0523de6f3
commit
69d1137982
6 changed files with 24 additions and 12 deletions
7
Rakefile
Normal file
7
Rakefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
require 'rake'
|
||||||
|
|
||||||
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
||||||
|
t.pattern = 'spec/*/*_spec.rb'
|
||||||
|
end
|
|
@ -1,4 +1,8 @@
|
||||||
# This is a placeholder class.
|
# This is a placeholder class.
|
||||||
class template {
|
class whatpulse {
|
||||||
anchor { 'Hello_World': }
|
package { 'Whatpulse':
|
||||||
|
source => 'http://amcdn.whatpulse.org/files/whatpulse-mac-2.2.1.dmg',
|
||||||
|
provider => appdmg
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
require 'spec_helper'
|
|
||||||
# Rename this file to classname_spec.rb
|
|
||||||
# Check other boxen modules for examples
|
|
||||||
# or read http://rspec-puppet.com/tutorial/
|
|
||||||
describe 'template' do
|
|
||||||
it do
|
|
||||||
should contain_anchor('Hello_World')
|
|
||||||
end
|
|
||||||
end
|
|
11
spec/classes/whatpulse_spec.rb
Normal file
11
spec/classes/whatpulse_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'whatpulse' do
|
||||||
|
it do
|
||||||
|
should contain_package('Whatpulse').with({
|
||||||
|
:source => 'http://amcdn.whatpulse.org/files/whatpulse-mac-2.2.1.dmg',
|
||||||
|
:provider => 'appdmg'
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
1
spec/fixtures/Puppetfile
vendored
1
spec/fixtures/Puppetfile
vendored
|
@ -1,2 +1 @@
|
||||||
mod 'boxen', '2.1.0', :github_tarball => 'boxen/puppet-boxen'
|
mod 'boxen', '2.1.0', :github_tarball => 'boxen/puppet-boxen'
|
||||||
mod 'stdlib', '4.0.0', :github_tarball => "puppetlabs/puppetlabs-stdlib"
|
|
||||||
|
|
Loading…
Reference in a new issue