Sha256: 240eb801205f79112cdd34a1c1f2f966ab48367bf8525510942bfb25289db629
Contents?: true
Size: 636 Bytes
Versions: 3
Compression:
Stored size: 636 Bytes
Contents
Given /^the folder "([^"]*)" with the following asset configurations:$/ do |folder, table| create_dir(folder) unless File.exists?(File.join(current_dir, folder)) table.hashes.each do |hash| config = {} config.merge!('path' => hash[:path]) if hash[:path] config.merge!('parent' => hash[:parent]) if hash[:parent] config.merge!('binary' => hash[:binary]) if hash[:binary] config.merge!('icon' => hash[:icon]) if hash[:icon] asset_name = hash[:name] create_dir(File.join(folder, asset_name)) filename = File.join(folder, asset_name, 'asset.conf') write_file(filename, config.to_conf) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
repo_manager-0.7.3 | lib/repo_manager/test/asset_steps.rb |
repo_manager-0.7.2 | lib/repo_manager/test/asset_steps.rb |
repo_manager-0.7.1 | lib/repo_manager/test/asset_steps.rb |