-
Notifications
You must be signed in to change notification settings - Fork 8
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 #46 from coi-gov-pl/feature/enh-10-cover-not-covered
Enhancement #10: Raising coverage to more then 80% and cover all Ruby source files
- Loading branch information
Showing
73 changed files
with
3,315 additions
and
1,529 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,11 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file, indent by 2 spaces | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 |
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,5 +1,5 @@ | ||
require File.expand_path(File.join(File.dirname(__FILE__), '../puppet_x/coi/jboss/configuration')) | ||
require File.expand_path(File.join(File.dirname(__FILE__), '../puppet_x/coi/jboss')) | ||
|
||
Facter.add(:jboss_configfile) do | ||
setcode { Puppet_X::Coi::Jboss::Configuration::configfile } | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
require File.expand_path(File.join(File.dirname(__FILE__), '../puppet_x/coi/jboss/configuration')) | ||
require File.expand_path(File.join(File.dirname(__FILE__), '../puppet_x/coi/jboss')) | ||
|
||
config = Puppet_X::Coi::Jboss::Configuration::read | ||
unless config.nil? | ||
config.each do |key, value| | ||
fact_symbol = "jboss_#{key}".to_sym | ||
Facter.add(fact_symbol) do | ||
setcode { value } | ||
end | ||
end | ||
Facter.add(:jboss_fullconfig) do | ||
setcode do | ||
if RUBY_VERSION < '1.9.0' | ||
class << config | ||
define_method(:to_s, proc { self.inspect }) | ||
end | ||
end | ||
config | ||
end | ||
end | ||
end | ||
Puppet_X::Coi::Jboss::Facts.define_fullconfig_fact |
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
Oops, something went wrong.