diff --git a/manifests/init.pp b/manifests/init.pp index a6e2f94..6a8013d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -14,7 +14,7 @@ # template => 'motd/motd.erb', # } # -define datacat( +define datacat ( $ensure = 'file', $template = undef, $template_body = undef, @@ -50,10 +50,10 @@ if $ensure == 'absent' { file { $title: - ensure => $ensure, - path => $path, - backup => $backup, - force => $force, + ensure => $ensure, + path => $path, + backup => $backup, + force => $force, } } else { file { $title: diff --git a/spec/fixtures/modules/demo1/manifests/init.pp b/spec/fixtures/modules/demo1/manifests/init.pp index 4f0f1e9..b8a336f 100644 --- a/spec/fixtures/modules/demo1/manifests/init.pp +++ b/spec/fixtures/modules/demo1/manifests/init.pp @@ -15,4 +15,3 @@ data => { bar => 2 }, } } - diff --git a/spec/fixtures/modules/demo2/manifests/init.pp b/spec/fixtures/modules/demo2/manifests/init.pp index 90310e0..72bc069 100644 --- a/spec/fixtures/modules/demo2/manifests/init.pp +++ b/spec/fixtures/modules/demo2/manifests/init.pp @@ -7,12 +7,11 @@ datacat_fragment { 'data foo => 1, 2': target => '/tmp/demo2', - data => { foo => [ 1, 2 ] }, + data => { foo => [1, 2] }, } datacat_fragment { 'data foo => 2, 3': target => '/tmp/demo2', - data => { foo => [ 2, 3 ] }, + data => { foo => [2, 3] }, } } - diff --git a/spec/fixtures/modules/demo3/manifests/init.pp b/spec/fixtures/modules/demo3/manifests/init.pp index 1e19438..b046d67 100644 --- a/spec/fixtures/modules/demo3/manifests/init.pp +++ b/spec/fixtures/modules/demo3/manifests/init.pp @@ -8,7 +8,7 @@ datacat_fragment { 'foo host': target => '/tmp/demo3', data => { - device => [ $host1 ], + device => [$host1], }, } @@ -16,7 +16,7 @@ datacat_fragment { 'foo ilo': target => '/tmp/demo3', data => { - device => [ $ilo_fqdn ], + device => [$ilo_fqdn], }, } } diff --git a/spec/fixtures/modules/issue1/manifests/init.pp b/spec/fixtures/modules/issue1/manifests/init.pp index b5c4283..b9ca76b 100644 --- a/spec/fixtures/modules/issue1/manifests/init.pp +++ b/spec/fixtures/modules/issue1/manifests/init.pp @@ -1,6 +1,6 @@ # This should repo the scope error from github issue #1 class issue1 { - datacat { "/tmp/issue1.1": - template => "issue1/refers_to_scope.erb", + datacat { '/tmp/issue1.1': + template => 'issue1/refers_to_scope.erb', } } diff --git a/test/integration/default/site.pp b/test/integration/default/site.pp index 51b94c0..0a79fb0 100644 --- a/test/integration/default/site.pp +++ b/test/integration/default/site.pp @@ -1,13 +1,13 @@ -datacat { "/tmp/demo1": - template_body => "<% @data.keys.sort.each do |k| %><%= k %>: <%= @data[k] %>, <% end %>", +datacat { '/tmp/demo1': + template_body => '<% @data.keys.sort.each do |k| %><%= k %>: <%= @data[k] %>, <% end %>', } -datacat_fragment { "foo": +datacat_fragment { 'foo': target => '/tmp/demo1', - data => { foo => "one" }, + data => { foo => 'one' }, } -datacat_fragment { "bar": +datacat_fragment { 'bar': target => '/tmp/demo1', - data => { bar => "two" }, + data => { bar => 'two' }, }