Sha256: 56d1dfb99bf12cd3adbb6f47b5a89b755c583e9acfb3976d28f69da4d5813a75

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

def export_png(file, width, postfix)
 sh "inkscape --export-png=\"../website/diagrams/#{file}#{postfix}.png\" --export-width=#{width} --export-background-opacity=0 \"#{file}.svg\""
end

def export_diagram(file)
  export_png file, 700, " - Small"
  export_png file, 1024, ""
end

task :default => :export

task :export do
  export_diagram "Requesting a Specific Environment"
   export_diagram "Multiple Environments Demo Setup"
   export_diagram "Selenium Grid Setup"
   export_diagram "Multiple Machine Demo Setup"
   export_diagram "Traditional Selenium Setup"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
selenium-rspec-dsl-1.0.2 vendor/selenium-grid-1.0.4/doc/resources/Rakefile