lib/seabass/feature_consumer.rb in seabass-0.2.2 vs lib/seabass/feature_consumer.rb in seabass-0.2.4
- old
+ new
@@ -10,10 +10,10 @@
def execute()
raise "The directory containing the packages has not been specified" if @package_dir.nil?
raise "The directory packages should be copied to has not been specified" if @consumer_dir.nil?
raise "The name of the application has not been specified" if @application_name.nil?
- Dir[@package_dir + "/#{@application_name}/**/**"].each do |resource|
+ Dir[@package_dir + "/**/#{@application_name}/**/**"].each do |resource|
raise "Could not find the app name in the resource type" if resource.match(/.*\/#{@application_name}\/(.*)/).nil?
destination = File.expand_path(File.join(@consumer_dir, $1))
next if File.directory?(resource)
\ No newline at end of file