-
-
Notifications
You must be signed in to change notification settings - Fork 124
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 #1 from bastelfreak/rubocop
Rubocop
- Loading branch information
Showing
40 changed files
with
100 additions
and
112 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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
Puppet::Type.type(:ini_setting).provide( | ||
:splunk, | ||
:parent => Puppet::Type.type(:ini_setting).provider(:ruby) | ||
parent: Puppet::Type.type(:ini_setting).provider(:ruby) | ||
) do | ||
|
||
confine :true => false # Never automatically select this provider | ||
confine true: false # Never automatically select this provider | ||
|
||
@file_path = nil | ||
|
||
def self.file_path | ||
raise Puppet::Error, "file_path must be set with splunk_config type before provider can be used" if @file_path.nil? | ||
raise Puppet::Error, "Child provider class does not support a file_name method" unless self.respond_to?(:file_name) | ||
raise Puppet::Error, 'file_path must be set with splunk_config type before provider can be used' if @file_path.nil? | ||
raise Puppet::Error, 'Child provider class does not support a file_name method' unless self.respond_to?(:file_name) | ||
File.join(@file_path, file_name) | ||
end | ||
|
||
def self.set_file_path(path) | ||
@file_path=path | ||
@file_path = path | ||
end | ||
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
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,9 +1,8 @@ | ||
Puppet::Type.type(:splunkforwarder_output).provide( | ||
:ini_setting, | ||
:parent => Puppet::Type.type(:ini_setting).provider(:splunk) | ||
parent: Puppet::Type.type(:ini_setting).provider(:splunk) | ||
) do | ||
def self.file_name | ||
"system/local/outputs.conf" | ||
'system/local/outputs.conf' | ||
end | ||
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
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,7 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_authentication) do | ||
@doc = "Manage splunk authentication settings in authentication.conf" | ||
@doc = 'Manage splunk authentication settings in authentication.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_authorize) do | ||
@doc = "Manage splunk authorize settings in authorize.conf" | ||
@doc = 'Manage splunk authorize settings in authorize.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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
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,7 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_distsearch) do | ||
@doc= "Manage distsearch entries in distsearch.conf" | ||
@doc = 'Manage distsearch entries in distsearch.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_indexes) do | ||
@doc = "Manage splunk index settings in indexes.conf" | ||
@doc = 'Manage splunk index settings in indexes.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_input) do | ||
@doc = "Manage splunk input settings in inputs.conf" | ||
@doc = 'Manage splunk input settings in inputs.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_limits) do | ||
@doc = "Manage splunk limits settings in limits.conf" | ||
@doc = 'Manage splunk limits settings in limits.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_output) do | ||
@doc = "Manage splunk output settings in outputs.conf" | ||
@doc = 'Manage splunk output settings in outputs.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_props) do | ||
@doc = "Manage splunk prop settings in props.conf" | ||
@doc = 'Manage splunk prop settings in props.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_server) do | ||
@doc = "Manage splunk server settings in server.conf" | ||
@doc = 'Manage splunk server settings in server.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_transforms) do | ||
@doc = "Manage splunk transforms settings in transforms.conf" | ||
@doc = 'Manage splunk transforms settings in transforms.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunk_web) do | ||
@doc = "Manage splunk web settings in web.conf" | ||
@doc = 'Manage splunk web settings in web.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
Puppet::Type.newtype(:splunkforwarder_input) do | ||
@doc = "Manage splunkforwarder input settings in inputs.conf" | ||
@doc = 'Manage splunkforwarder input settings in inputs.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
require File.join(File.dirname(__FILE__), '..', '..', 'puppet_x/puppetlabs/splunk/type') | ||
|
||
|
||
Puppet::Type.newtype(:splunkforwarder_output) do | ||
@doc = "Manage splunkforwarder output settings in outputs.conf" | ||
@doc = 'Manage splunkforwarder output settings in outputs.conf' | ||
PuppetX::Puppetlabs::Splunk::Type.clone_type(self) | ||
end |
Oops, something went wrong.