lib/flashsdk/compiler_base.rb in flashsdk-1.0.20.pre vs lib/flashsdk/compiler_base.rb in flashsdk-1.0.21.pre

- old
+ new

@@ -659,10 +659,23 @@ super end protected + def update_fcsh + # Check for USE_FCSH on the environment + # variable hash, update instance value + # if found to be true: + if ENV['USE_FCSH'].to_s == 'true' + self.use_fcsh = true + end + + if !ENV['FCSH_PORT'].nil? + self.fcsh_port = ENV['FCSH_PORT'] + end + end + ## # Template method called by {Sprout::Executable} when # a {Sprout::Library} is found in the Rake::Task prerequisite list. # # @param path [File] The path within the project where the library was copied. @@ -679,20 +692,10 @@ end ## # override def prepare - # Check for USE_FCSH on the environment - # variable hash, update instance value - # if found to be true: - if ENV['USE_FCSH'].to_s == 'true' - self.use_fcsh = true - end - - if !ENV['FCSH_PORT'].nil? - self.fcsh_port = ENV['FCSH_PORT'] - end - + update_fcsh if use_fcsh.nil? super end ## # override