]> gitweb.fluxo.info Git - puppet-stdlib.git/log
puppet-stdlib.git
14 years ago(#8792) Rename whole_line type to file_line
Jeff McCune [Fri, 5 Aug 2011 02:17:48 +0000 (19:17 -0700)]
(#8792) Rename whole_line type to file_line

Without this patch the resource whole_line would be included in the
stable stdlib module shipping in PE 1.2.  Ideally the name will be
stable and unchanging in the future.

There was quite a bit of concern over whole_line being an unwise name.
file_line appears to be the most suitable name and least likely to need
another rename in the future.

14 years agoUpdate CHANGELOG and Modulefile for 1.1.0
Jeff McCune [Fri, 5 Aug 2011 01:34:32 +0000 (18:34 -0700)]
Update CHANGELOG and Modulefile for 1.1.0

14 years agoMerge branch 'refactor/master/8665_whole_line'
Jeff McCune [Fri, 5 Aug 2011 00:58:05 +0000 (17:58 -0700)]
Merge branch 'refactor/master/8665_whole_line'

* refactor/master/8665_whole_line:
  (#8665) Change type from append_line to whole_line

14 years agoUpdate CHANGELOG and README for 1.0.0
Jeff McCune [Fri, 5 Aug 2011 00:20:39 +0000 (17:20 -0700)]
Update CHANGELOG and README for 1.0.0

14 years agoMerge branch 'ticket/master/8678_validate_array_string'
Jeff McCune [Thu, 4 Aug 2011 23:05:49 +0000 (16:05 -0700)]
Merge branch 'ticket/master/8678_validate_array_string'

* ticket/master/8678_validate_array_string:
  (#8678) Add validate_array and validate_string functions

14 years ago(#8678) Add validate_array and validate_string functions
Jeff McCune [Wed, 3 Aug 2011 22:51:27 +0000 (15:51 -0700)]
(#8678) Add validate_array and validate_string functions

The accounts module is making use of validate_array() and
validate_string() which do not exist int he stdlib module without this
patch.

This patch adds the two functions to the stdlib with unit tests.

Reviewed-by: Dan Bode
14 years agoMerge branch 'ticket/master/8717_merge_function_ruby_185'
Jeff McCune [Mon, 1 Aug 2011 18:48:50 +0000 (11:48 -0700)]
Merge branch 'ticket/master/8717_merge_function_ruby_185'

* ticket/master/8717_merge_function_ruby_185:
  (#8717) Make merge() function work with Ruby 1.8.5

14 years ago(#8717) Make merge() function work with Ruby 1.8.5
Jeff McCune [Mon, 1 Aug 2011 18:30:28 +0000 (11:30 -0700)]
(#8717) Make merge() function work with Ruby 1.8.5

The previous behavior of the merge() function used Array#inject with two
arguments.  Ruby 1.8.5 only supports inject being used with one
argument.

This change initializes and empty Hash object and merges each argument
into the accumulator.  The last argument still "wins" in the merge.

rspec tests (cd spec; rspec **/*_spec.rb) verified as passing with this
change.

Reviewed-by: Dan Bode
14 years agoFix some ruby 1.9.2 issues.
Ken Barber [Fri, 29 Jul 2011 23:44:02 +0000 (00:44 +0100)]
Fix some ruby 1.9.2 issues.

14 years agoMerge branch 'feature/master/add_merge_has_key'
Dan Bode [Fri, 29 Jul 2011 22:42:53 +0000 (15:42 -0700)]
Merge branch 'feature/master/add_merge_has_key'

14 years ago(#8709) Add hash merging function
Dan Bode [Fri, 29 Jul 2011 22:28:21 +0000 (15:28 -0700)]
(#8709) Add hash merging function

In Puppet, it is not possible to reassign hash
values.

This function allows a reasonable way to perform
hash munging in Puppet.

Reviewed-by: Jeff McCune
14 years ago(#8708) Add has_key function
Dan Bode [Fri, 29 Jul 2011 22:10:13 +0000 (15:10 -0700)]
(#8708) Add has_key function

It is difficult to use existance of keys in a hash
as a boolean condition in Puppet (see #8705)

This function provides a working solution until
the underlying issue in Puppet can be resolved.

Reviewed-by: Jeff McCune
14 years ago(#3) Provide documentation for remaining functions.
Ken Barber [Fri, 29 Jul 2011 22:09:30 +0000 (23:09 +0100)]
(#3) Provide documentation for remaining functions.

14 years ago(#3) Apply missing documentation to more functions.
Ken Barber [Fri, 29 Jul 2011 21:18:56 +0000 (22:18 +0100)]
(#3) Apply missing documentation to more functions.

14 years agoRemove rand.
Ken Barber [Fri, 29 Jul 2011 21:08:09 +0000 (22:08 +0100)]
Remove rand.

14 years agoSome improvements to values_at tests.
Ken Barber [Fri, 29 Jul 2011 20:17:19 +0000 (21:17 +0100)]
Some improvements to values_at tests.

14 years ago(#1) provide some more detailed tests for a number of functions.
Ken Barber [Fri, 29 Jul 2011 19:57:10 +0000 (20:57 +0100)]
(#1) provide some more detailed tests for a number of functions.

14 years agoRemoved date stub since this functinality is available in strftime anyway.
Ken Barber [Fri, 29 Jul 2011 19:56:40 +0000 (20:56 +0100)]
Removed date stub since this functinality is available in strftime anyway.

14 years ago(#2) fix is_string finally so it also makes sure numbers return false.
Ken Barber [Fri, 29 Jul 2011 19:11:47 +0000 (20:11 +0100)]
(#2) fix is_string finally so it also makes sure numbers return false.

14 years ago(#2) unstub is_valid_domain_name
Ken Barber [Fri, 29 Jul 2011 19:08:31 +0000 (20:08 +0100)]
(#2) unstub is_valid_domain_name

14 years agoAdded doc strings for first five functions
James Turnbull [Fri, 29 Jul 2011 18:22:30 +0000 (04:22 +1000)]
Added doc strings for first five functions

14 years agoRemoved join_with_prefix.
Ken Barber [Fri, 29 Jul 2011 17:00:32 +0000 (18:00 +0100)]
Removed join_with_prefix.

14 years ago(#2) unstub is_valid_mac_address.
Ken Barber [Fri, 29 Jul 2011 16:55:45 +0000 (17:55 +0100)]
(#2) unstub is_valid_mac_address.

14 years agoAllow sort for strings.
Ken Barber [Thu, 28 Jul 2011 23:10:31 +0000 (00:10 +0100)]
Allow sort for strings.

14 years agoCount functionality overlaps with size - so removing it.
Ken Barber [Thu, 28 Jul 2011 20:30:02 +0000 (21:30 +0100)]
Count functionality overlaps with size - so removing it.

14 years agoRemoved crontab functions instead of unstubbing them.
Ken Barber [Thu, 28 Jul 2011 20:23:53 +0000 (21:23 +0100)]
Removed crontab functions instead of unstubbing them.

14 years agoRemoved load_variables. load_yaml is sufficient to solve this problem on its own.
Ken Barber [Thu, 28 Jul 2011 20:15:43 +0000 (21:15 +0100)]
Removed load_variables. load_yaml is sufficient to solve this problem on its own.

14 years agoRemove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible function...
Ken Barber [Thu, 28 Jul 2011 20:10:33 +0000 (21:10 +0100)]
Remove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible function on its own.

14 years ago(#2) unstub is_numeric function.
Ken Barber [Thu, 28 Jul 2011 20:03:33 +0000 (21:03 +0100)]
(#2) unstub is_numeric function.

14 years ago(#2) - unstubbed is_valid_ip_address
Ken Barber [Thu, 28 Jul 2011 17:10:16 +0000 (18:10 +0100)]
(#2) - unstubbed is_valid_ip_address

14 years ago(#1) - added new test for upcase.
Ken Barber [Thu, 28 Jul 2011 14:44:26 +0000 (15:44 +0100)]
(#1) - added new test for upcase.

14 years ago(#2) - Added is_float and is_integer functionality.
Ken Barber [Thu, 28 Jul 2011 14:38:19 +0000 (15:38 +0100)]
(#2) - Added is_float and is_integer functionality.

14 years ago(#8665) Change type from append_line to whole_line
Dan Bode [Wed, 27 Jul 2011 22:28:44 +0000 (15:28 -0700)]
(#8665) Change type from append_line to whole_line

Changed the type name from append_line to
whole_line.

After feedback that having a type with a verb in
the name was confusing.

14 years agoMerge branch 'ticket/master/8585_load_yaml_function'
Jeff McCune [Tue, 26 Jul 2011 22:46:23 +0000 (15:46 -0700)]
Merge branch 'ticket/master/8585_load_yaml_function'

* ticket/master/8585_load_yaml_function:
  (#8575) Add loadyaml() function

14 years ago(#8575) Add loadyaml() function
Jeff McCune [Mon, 25 Jul 2011 17:42:27 +0000 (10:42 -0700)]
(#8575) Add loadyaml() function

This change adds a loadyaml() puppet function that takes a path to a
YAML data file and returns the contents as a Puppet variable.  There is
currently no validation of the contents of the file.

This commit is intentionally lacking unit tests because of time
constraints.

Reviewed-by: Dan Bode
14 years agoMerge branch 'feature/master/8628_append_line'
Dan Bode [Tue, 26 Jul 2011 22:35:52 +0000 (15:35 -0700)]
Merge branch 'feature/master/8628_append_line'

14 years ago(#8628) Add append_line native type
Dan Bode [Tue, 26 Jul 2011 22:27:42 +0000 (15:27 -0700)]
(#8628) Add append_line native type

This commit adds a native type that can check if
a line exists and append it to a file.

This use case seems common enough to warrant its
inclusion into stdlib.

Reviewed-by: Jeff McCune
14 years ago(#1) - fleshed out some more tests.
Ken Barber [Sat, 23 Jul 2011 23:39:17 +0000 (00:39 +0100)]
(#1) - fleshed out some more tests.

14 years agoAdded validate_resource function and examples on how to use it (and kwalify as well)
Ken Barber [Fri, 1 Jul 2011 19:09:02 +0000 (21:09 +0200)]
Added validate_resource function and examples on how to use it (and kwalify as well)

14 years agoFew more tests.
Ken Barber [Wed, 29 Jun 2011 23:00:32 +0000 (01:00 +0200)]
Few more tests.

14 years agoMove require inside function for kwalify.
Ken Barber [Wed, 29 Jun 2011 22:39:23 +0000 (23:39 +0100)]
Move require inside function for kwalify.

14 years agoAdd some more functional tests.
Ken Barber [Wed, 29 Jun 2011 22:37:37 +0000 (23:37 +0100)]
Add some more functional tests.

14 years agoNew abs test.
Ken Barber [Wed, 29 Jun 2011 20:59:18 +0000 (21:59 +0100)]
New abs test.

14 years agoAdded tests for each function, fixing functions as we hit bugs.
Ken Barber [Wed, 29 Jun 2011 20:21:55 +0000 (21:21 +0100)]
Added tests for each function, fixing functions as we hit bugs.

14 years agoAdded kwalify function.
Ken Barber [Wed, 29 Jun 2011 11:30:07 +0000 (12:30 +0100)]
Added kwalify function.

14 years agoCopied function test scaffolding from puppet.
Ken Barber [Wed, 29 Jun 2011 11:25:43 +0000 (12:25 +0100)]
Copied function test scaffolding from puppet.

14 years agoRemoved duplicate - is_hash is really now is_hash instead of is_array.
Ken Barber [Sun, 26 Jun 2011 12:33:53 +0000 (14:33 +0200)]
Removed duplicate - is_hash is really now is_hash instead of is_array.

14 years agoUpdate CHANGELOG and version for 0.1.7
Jeff McCune [Wed, 22 Jun 2011 00:08:05 +0000 (17:08 -0700)]
Update CHANGELOG and version for 0.1.7

14 years agoUpdate README with getvar() and validate_hash()
Jeff McCune [Wed, 22 Jun 2011 00:06:46 +0000 (17:06 -0700)]
Update README with getvar() and validate_hash()

The README now provides quick examples of how to take advantage of the
getvar() and validate_hash() functions included in this release of the
stdlib.

14 years agoMerge branch 'ticket/master/8010_validate_hash_function'
Jeff McCune [Wed, 22 Jun 2011 00:03:25 +0000 (17:03 -0700)]
Merge branch 'ticket/master/8010_validate_hash_function'

* ticket/master/8010_validate_hash_function:
  (#8010) Add validate_hash spec tests
  (#8010) Add validate_hash function

14 years ago(#8010) Add validate_hash spec tests
Jeff McCune [Wed, 22 Jun 2011 00:02:22 +0000 (17:02 -0700)]
(#8010) Add validate_hash spec tests

These tests run through a number of example cases and exercise the
behavior of the validate_hash function.

To run, simple execute rspec validate_hash_spec.rb

14 years ago(#8010) Add validate_hash function
Jeff McCune [Wed, 22 Jun 2011 00:01:33 +0000 (17:01 -0700)]
(#8010) Add validate_hash function

This function validates all passed variables are hashes.  This is
similar to the validate_bool function and is copied from it.

14 years agoMerge branch 'ticket/master/8010_getvar_function'
Jeff McCune [Wed, 22 Jun 2011 00:01:14 +0000 (17:01 -0700)]
Merge branch 'ticket/master/8010_getvar_function'

* ticket/master/8010_getvar_function:
  (#8010) Add getvar() rvalue function

14 years ago(#8010) Add getvar() rvalue function
Jeff McCune [Tue, 21 Jun 2011 21:10:33 +0000 (14:10 -0700)]
(#8010) Add getvar() rvalue function

This isn't directly related to #8010, but rather indirectly fills the
need to allow the end user to configure where data values are looked up.

This allows the namespace to be passed as a class parameter.  A module
may then quickly and easily look up data from the user-defined
namespace.

14 years agoRemove metadata.json from repository
Jeff McCune [Mon, 20 Jun 2011 23:05:18 +0000 (16:05 -0700)]
Remove metadata.json from repository

This file is generated from the puppet-module build command and should
not be included in the repository.  If it is, the repository is not
directly usable on a Puppet master because the metadata.json is invalid.

14 years agoUpdate CHANGELOG for version 0.1.6
Jeff McCune [Wed, 15 Jun 2011 18:53:15 +0000 (11:53 -0700)]
Update CHANGELOG for version 0.1.6

14 years agoMerge pull request #4 from jeffmccune/ticket/master/3_anchor_resource_type
Jeff McCune [Wed, 15 Jun 2011 18:51:33 +0000 (11:51 -0700)]
Merge pull request #4 from jeffmccune/ticket/master/3_anchor_resource_type

Ticket/master/3 anchor resource type

Nan +1'ed on the tech list.

Merging into master.

14 years ago(#3) Add simple unit test for anchor type
Jeff McCune [Wed, 15 Jun 2011 16:43:22 +0000 (09:43 -0700)]
(#3) Add simple unit test for anchor type

Unlike the whit type the anchor type derives from, we are not hacking
the stringify method.  We expect the resource to be named simply
Anchor[foo::bar] where the name is "foo::bar".

14 years ago(#3) Add an anchor type to provide containment
Jeff McCune [Wed, 15 Jun 2011 16:40:04 +0000 (09:40 -0700)]
(#3) Add an anchor type to provide containment

With Puppet 2.6.x we do not have a way to specify containment
relationships.  In the use case of class ntp { } declaring
ntp::{package,config,service} classes, the ntp class itself should allow
the user to specify before and require relationships to the main ntp
class.

The anchor resource type allows module authors to close the loop on
classes composing the main top level module.  For example:

    class ntp {
      class { 'ntp::package': }
      -> class { 'ntp::config': }
      -> class { 'ntp::service': }
      # These two resources "anchor" the composed classes
      # such that the end user may use "require" and "before"
      # relationships with Class['ntp']
      anchor { 'ntp::begin': } -> class { 'ntp::package': }
      class { 'ntp::service': } -> anchor { 'ntp::end': }
    }

Using this pattern, the module user may then simply declare relationships to
the ntp class as they expect:

    class { 'ntp': } -> class { 'mcollective': }
    # OR
    class { 'mcollective': } -> class { 'ntp': }

14 years agoAdd additional tests to validate_bool() spec
Jeff McCune [Fri, 3 Jun 2011 18:56:02 +0000 (11:56 -0700)]
Add additional tests to validate_bool() spec

14 years agoUpdate CHANGELOG for 0.1.5
Jeff McCune [Fri, 3 Jun 2011 18:43:38 +0000 (11:43 -0700)]
Update CHANGELOG for 0.1.5

14 years agoAdd Apache 2.0 License
Jeff McCune [Fri, 3 Jun 2011 18:44:23 +0000 (11:44 -0700)]
Add Apache 2.0 License

14 years agoMerge branch 'feature/master/validation_functions'
Jeff McCune [Fri, 3 Jun 2011 18:42:39 +0000 (11:42 -0700)]
Merge branch 'feature/master/validation_functions'

* feature/master/validation_functions:
  Add spec test for validate_bool function
  Add validate_bool() function to stdlib

14 years agoAdd spec test for validate_bool function
Jeff McCune [Fri, 3 Jun 2011 18:41:20 +0000 (11:41 -0700)]
Add spec test for validate_bool function

This is an interesting spec test for module developers.
It illustrates how to cause Puppet to test the function
from the Puppet DSL rather than the Ruby DSL, fully
exercising the system from the perspective of the end
user.

(Note how Puppet[:code] is set, then the scope reset, then
the compile method called.)

Paired-with: Dan Bode <dan@puppetlabs.com>

14 years agoAdd validate_bool() function to stdlib
Jeff McCune [Fri, 3 Jun 2011 18:39:45 +0000 (11:39 -0700)]
Add validate_bool() function to stdlib

This function aborts catalog compilation if any of the passed
values are not true or false.  Note, this catches the string
values of true and false correct and will abort catalog
compilation if they are not boolean values.

Paired-with: Dan Bode <dan@puppetlabs.com>

14 years agoUpdate CHANGELOG with stage re-ordering
Jeff McCune [Thu, 26 May 2011 17:25:45 +0000 (10:25 -0700)]
Update CHANGELOG with stage re-ordering

14 years agoMerge branch 'bug/master/prefer_stages_after_main'
Jeff McCune [Thu, 26 May 2011 17:25:35 +0000 (10:25 -0700)]
Merge branch 'bug/master/prefer_stages_after_main'

* bug/master/prefer_stages_after_main:
  Move stages to after main

14 years agoMove stages to after main
Jeff McCune [Thu, 26 May 2011 17:21:42 +0000 (10:21 -0700)]
Move stages to after main

Working with the stages in stdlib, I quickly ran into an issue where
most of the stages were before the main stage.  This made it difficult
to declare any resources in a traditional "include" style class while
hiding the end user from the stages being associated with other module
classes.

For example, in class mcollective, a package would be declared in main.
However, if mcollective declared class mcollective::service in stage
infra_deploy and this was before main, there would be a dependency loop
between the package and the service.

There appears to be a convention around "chain your stages after main"
to avoid the need to create relatively empty shell classes.

14 years agoUpdate CHANGELOG for 0.1.3 release
Jeff McCune [Wed, 25 May 2011 20:29:27 +0000 (13:29 -0700)]
Update CHANGELOG for 0.1.3 release

14 years agoMerge branch 'feature/master/7657_validate_re'
Jeff McCune [Wed, 25 May 2011 19:39:58 +0000 (12:39 -0700)]
Merge branch 'feature/master/7657_validate_re'

* feature/master/7657_validate_re:
  (#7657) Add basic validate_re function

14 years ago(#7657) Add basic validate_re function
Jeff McCune [Wed, 25 May 2011 19:38:15 +0000 (12:38 -0700)]
(#7657) Add basic validate_re function

While developing Puppet Modules with class parameters, data from the
user should be validated as per the Style Guide.  Puppet should fail
early and hard in the situation of invalid data being passed into the
module.

This function provides a more concise method to the alternative of using
if statements in the Puppet manifests.

14 years agoAdd DS_Store to gitignore
Jeff McCune [Wed, 25 May 2011 16:36:08 +0000 (09:36 -0700)]
Add DS_Store to gitignore

14 years agoUpdate changelog for version 0.1.2
Jeff McCune [Tue, 24 May 2011 18:48:50 +0000 (11:48 -0700)]
Update changelog for version 0.1.2

Also add release process information.

14 years agoAdd changelog to track releases
Jeff McCune [Tue, 24 May 2011 18:27:41 +0000 (11:27 -0700)]
Add changelog to track releases

Following the development process, as new releases of this module are
cut the Changelog will be updated.

14 years agoAdd standard set of run stages.
Jeff McCune [Tue, 24 May 2011 18:25:51 +0000 (11:25 -0700)]
Add standard set of run stages.

Many modules I'm working on need a standard but
relatively granular location in the catalog.  For example,
any module that configures the packaging system should
run "early"

Add the following stages which have inter-dependencies
in the top to bottom order listed:

 * setup
 * deploy
 * runtime
 * setup_infra
 * deploy_infra
 * main
 * setup_app
 * deploy_app

14 years agoUpdate README with target versions
Jeff McCune [Tue, 24 May 2011 18:23:16 +0000 (11:23 -0700)]
Update README with target versions

Also add the list of things this module will
likely contain.

14 years agoInitial commit
Jeff McCune [Tue, 24 May 2011 18:06:30 +0000 (11:06 -0700)]
Initial commit

14 years agoRename to puppetlabs-functions.
Ken Barber [Mon, 16 May 2011 20:40:01 +0000 (21:40 +0100)]
Rename to puppetlabs-functions.

14 years agoAdded disclaimer and basic installation guide to README.markdown file.
Ken Barber [Thu, 5 May 2011 09:00:05 +0000 (11:00 +0200)]
Added disclaimer and basic installation guide to README.markdown file.

14 years agoMoved more functions into lib/puppet/parser/functions/
Ken Barber [Sat, 30 Apr 2011 14:00:49 +0000 (16:00 +0200)]
Moved more functions into lib/puppet/parser/functions/

14 years agoMoved type.rb
Ken Barber [Fri, 29 Apr 2011 14:52:14 +0000 (16:52 +0200)]
Moved type.rb

14 years agoMoved type into pluginsync compat area.
Ken Barber [Fri, 29 Apr 2011 14:51:47 +0000 (16:51 +0200)]
Moved type into pluginsync compat area.

14 years agoAdded Apache license.
Ken Barber [Fri, 29 Apr 2011 08:30:11 +0000 (10:30 +0200)]
Added Apache license.

14 years agoChange README.
Ken Barber [Fri, 29 Apr 2011 07:55:55 +0000 (09:55 +0200)]
Change README.

14 years agoConvert to module format.
Ken Barber [Fri, 29 Apr 2011 07:27:10 +0000 (09:27 +0200)]
Convert to module format.

14 years agoAdd number of stub code for future functions.
Krzysztof Wilczynski [Sat, 30 Apr 2011 13:36:25 +0000 (14:36 +0100)]
Add number of stub code for future functions.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoFirst version. Simple swapcase function to use within Puppet DSL.
Krzysztof Wilczynski [Sat, 30 Apr 2011 13:35:10 +0000 (14:35 +0100)]
First version.  Simple swapcase function to use within Puppet DSL.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoMaking sure that the function hash will also work on older Rubies.
Krzysztof Wilczynski [Sat, 30 Apr 2011 02:44:59 +0000 (03:44 +0100)]
Making sure that the function hash will also work on older Rubies.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoAdd number of stub code for future functions.
Krzysztof Wilczynski [Sat, 30 Apr 2011 02:16:12 +0000 (03:16 +0100)]
Add number of stub code for future functions.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoFirst version. Simple hash function to use within Puppet DSL.
Krzysztof Wilczynski [Sat, 30 Apr 2011 02:15:47 +0000 (03:15 +0100)]
First version.  Simple hash function to use within Puppet DSL.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoChange boolean detecion from string to make entire function more robust.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:57:48 +0000 (02:57 +0100)]
Change boolean detecion from string to make entire function more robust.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoChanged wording of the note in the comment.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:54:47 +0000 (02:54 +0100)]
Changed wording of the note in the comment.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoSmall re-factor. Remove not needed complexity.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:51:17 +0000 (02:51 +0100)]
Small re-factor.  Remove not needed complexity.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoAdded body of the function flatten.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:50:38 +0000 (02:50 +0100)]
Added body of the function flatten.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoMoved to unless from if not to improve code clarity. Changed
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:49:15 +0000 (02:49 +0100)]
Moved to unless from if not to improve code clarity.  Changed
wording of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoMoved to unless from if not to improve code clarity. Added TODO
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:48:25 +0000 (02:48 +0100)]
Moved to unless from if not to improve code clarity.  Added TODO
for future reference.  Changed wording of few error messages.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoAdded TODO for future reference.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:47:20 +0000 (02:47 +0100)]
Added TODO for future reference.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoMoved to unless from if not to make code more clear. Plus a variable
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:46:03 +0000 (02:46 +0100)]
Moved to unless from if not to make code more clear.  Plus a variable
name change for simplicity.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoSmall change to code formatting.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:45:36 +0000 (02:45 +0100)]
Small change to code formatting.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
14 years agoAdded comment line.
Krzysztof Wilczynski [Sat, 30 Apr 2011 01:45:04 +0000 (02:45 +0100)]
Added comment line.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>