Last active
August 29, 2015 13:59
-
-
Save urras/10689125 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'swftly' | |
# | |
swf_path = '/home/user01/flash/' | |
# | |
the_swf = '/home/user01/flash/lolcats.swf' | |
swftly = Swftly.new(the_swf, false) #don't auto process | |
swftly.swiff #send the_swf off to Google's hosted service for conversion | |
if swftly.converter_response_code == 200 #success! | |
swftly.process! #buildout the Runtime and Converted stuffs | |
puts 'ok' | |
else | |
puts 'warn' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'swftly' | |
the_swf = '/home/user01/flash/lolcats.swf' | |
swftly = Swftly.new(the_swf) #fire her up | |
swftly.swiff | |
index = File.open("index.html", "w") | |
index.close |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment