lib/ruby-processing/exporters/applet_exporter.rb in ruby-processing-1.0.10.1 vs lib/ruby-processing/exporters/applet_exporter.rb in ruby-processing-1.0.11
- old
+ new
@@ -5,12 +5,12 @@
class AppletExporter < BaseExporter
USAGE = <<-EOS
The applet generator will generate a web-ready applet for you.
- Usage: script/applet <path_to_sketch>
- Example: script/applet samples/jwishy.rb
+ Usage: rp5 applet <path_to_sketch>
+ Example: rp5 applet samples/jwishy.rb
EOS
def export!(sketch)
# Check to make sure that the main file exists
@@ -31,11 +31,11 @@
render_erb_in_path_with_binding(@dest, binding, :delete => true)
end
def compute_destination_name
- @dest = "#{@main_file.sub(".rb", "")}"
+ @dest = "#{@main_file.sub(".rb", "")}_applet"
end
def copy_over_necessary_files
@necessary_files = [@main_file_path]
@necessary_files += Dir["#{RP5_ROOT}/lib/{*,**}"]
@@ -73,6 +73,6 @@
puts USAGE
exit
end
end
-end
\ No newline at end of file
+end