lib/flashsdk/fdb.rb in flashsdk-1.0.18.pre vs lib/flashsdk/fdb.rb in flashsdk-1.0.20.pre
- old
+ new
@@ -10,11 +10,11 @@
# the desktop debug Flash Player for your platform using
# the FlashSDK::FlashPlayer task, or you can open the
# SWF manually on the desktop or the browser - as long
# as you run it in a Debug Flash Player.
#
- class FDB < Sprout::Daemon
+ class FDB < Sprout::Executable::Session
set :default_prefix, '-'
##
# The default gem name
@@ -26,11 +26,11 @@
##
# The default executable target
set :executable, :fdb
- set :prompt, /^\(fdb\) |\(y or n\) /
+ set :prompt, /^\(fdb\) |\(y or n\) |Waiting for Player to connect/
##
# Print a backtrace of all stack frames
add_action :backtrace
add_action_alias :bt, :backtrace
@@ -761,7 +761,12 @@
#
def fdb *args, &block
fdb_tool = FlashSDK::FDB.new
fdb_tool.to_rake *args, &block
fdb_tool
+end
+
+desc "Make subsequent FlashPlayer task(s) use FDB"
+task :fdb do
+ ENV['USE_FDB'] = 'true'
end