refactor copy_root_module_to to copy_module_to and add support for ignore

https://tickets.puppetlabs.com/browse/QENG-762

Correct it will affectively do nothing until you add the :ignore option in scp_to.

-- 

Travis Fields

travis@puppetlabs.com 

Forge Module Engineer


Join us at PuppetConf 2014, September 22-24 in San Francisco

Register by May 30th to take advantage of the Early Adopter discount —save $349!

On Tue, Jun 10, 2014 at 2:16 PM, alice nodelman <notifications@github.com>
wrote:

>>          end
>>  
>> -        module_dir = File.join(target_module_path, module_name)
>> -        on host, "mkdir -p #{target_module_path}"
>> -        ['manifests', 'lib', 'templates', 'metadata.json', 'Modulefile', 'files', 'Gemfile'].each do |item|
>> -          item_source = File.join(source, item)
>> -          if File.exists? item_source
>> -            options = {}
>> -            if File.directory? item_source
>> -              on host, "mkdir -p #{File.join(module_dir, item)}"
>> -              options = { :mkdir => true }
>> -            end
>> -            host.do_scp_to(item_source, module_dir, options)
>> -          end
>> -        end
>> +        scp_to host, File.join(opts[:source]), File.join(target_module_dir, module_name), {:ignore => ignore_list}
> Just to clear this up to me, this won't currently work because we don't have support for :ignore option in scp?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/puppetlabs/beaker/pull/297/files#r13619955