Custom gravel in Aptana is not automatically activated

I'm new to Aptana, so I might be missing out on something obvious. My problem in the package that I created is not activated when Aptana boots. I need to update the date of the rubble.rb file so that it works.

touch ~/Documents/Aptana Rubles/ioncubeEncode.ruble 

After I do this, the rest of the Aptana session is all peach.

I don't think this is relevant, but here is a bunch code that works fine (when it works):

 require 'ruble' #Ruble::Logger.log_level = :trace bundle do |bundle| bundle.author = "Sasha" bundle.copyright = "None" bundle.display_name = "Ioncube Encode" bundle.description = "Encode just saved php file form base_local to base folder" end command "Ioncube Encode" do |cmd| cmd.input = :document cmd.output = :output_to_console cmd.trigger = :execution_listener , "org.eclipse.ui.file.save" cmd.invoke do |ctx| source_path = ENV['TM_FILEPATH'] ext = File.extname(source_path) if ext == '.php' if ( source_path =~ /base_local/) destination_path = source_path.sub('/base_local/','/base/') #CONSOLE.puts "Ioncube Encoding: " + source_path + " to " + destination_path exec="/usr/local/ioncube/ioncube_encoder5 -v --optimize more --without-loader-check " + source_path + " -o " +destination_path + " 2>&1" IO.popen(exec, 'r+') do |io| io.close_write CONSOLE.puts io.read end end end end end 

It may seem unimportant, but it bothers me - a lot.

+4
source share

All Articles