Permalink
Browse files

Moved initialize_defaults up to protected method

  • Loading branch information...
1 parent be93e38 commit c7ef37d3aa1a5e464cb2a7d22bc144a2b5dee5ce @lukebayes committed Jun 18, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/sprout/executable/base.rb
@@ -469,6 +469,13 @@ def system_execute binary, params
Sprout.current_system.execute binary, params
end
+ def initialize_defaults
+ assembled_default_parameter_collection.reverse.each do |option|
+ #puts ">> updating default on: #{self} for: #{option[:name]} with: #{option[:value]}"
+ self.send "#{option[:name]}=", option[:value]
+ end
+ end
+
private
def handle_library_prerequisites items
@@ -516,13 +523,6 @@ def initialize_parameters
end
end
- def initialize_defaults
- assembled_default_parameter_collection.reverse.each do |option|
- #puts ">> updating default on: #{self} for: #{option[:name]} with: #{option[:value]}"
- self.send "#{option[:name]}=", option[:value]
- end
- end
-
def assembled_parameter_collection
assembled_static_collection :static_parameter_collection
end

0 comments on commit c7ef37d

Please sign in to comment.