Form1 Have Fun! Willem van Kerkhof GNU GPL v2+ 0.3 Form1 0 0 749 440 5 5 250 0 0 0 300 0 Rails helper Application @commands.setVisible(false) @RailsRoot.setText(@exec("pwd")) unnamed 11 6 TabWidget1 true tab s&cript/generate unnamed 8 5 commands Commands @if(@ComboBox1.currentItem == 1 || @ComboBox1.currentItem == 3) @commands.setVisible(true) @endif @if(@ComboBox1.currentItem != 1 && @ComboBox1.currentItem != 3) @commands.setVisible(false) @endif unnamed 11 6 command5 @widgetText command2 @widgetText command3 @widgetText command4 @widgetText command1 @widgetText command6 @widgetText Label1 Name migration scaffold model controller ComboBox1 @widgetText Label2 0 5 0 0 Type LineEdit1 1 0 0 0 name @widgetText Konsole1 Monospace 9 PlainText false 8 true #!/bin/bash ruby script/generate @ComboBox1.item(@ComboBox1.currentItem) @LineEdit1 @command1 @command2 @command3 @command4 @command5 @command6 #!/bin/bash echo "changing to directory @RailsRoot " cd @RailsRoot pwd if [[ `pwd` == @RailsRoot ]] then echo "executing ruby script/generate @ComboBox1.item(@ComboBox1.currentItem) @LineEdit1 @command1 @command2 @command3 @command4 @command5 @command6 " ruby script/generate @ComboBox1.item(@ComboBox1.currentItem) @LineEdit1 @command1 @command2 @command3 @command4 @command5 @command6 2>&1 echo "DONE." else echo "Could not cd - please check your Rails Root setting!" fi ClearButton1 5 1 0 0 Clear Logging &Output ExecButton1 5 1 0 0 &GENERATE @Konsole1.execute Spacer1 Vertical Expanding 0 60 tab R&ake unnamed 8 5 Label3 Version VersionSelect 256 @widgetText ExecButton3 &Migrate @if(@VersionSelect != 0) @setGlobal(RAKE_ACTION, "db:migrate VERSION=@VersionSelect ") @endif @if(@VersionSelect == 0) @setGlobal(RAKE_ACTION, "db:migrate") @endif @Konsole2.execute LoadFixturesButton Load F&ixtures @setGlobal(RAKE_ACTION, "db:fixtures:load") @Konsole2.execute DumpSchemaButton D&ump Schema @setGlobal(RAKE_ACTION, "db:schema:dump") @Konsole2.execute PrepareTestButton Prepare Test @setGlobal(RAKE_ACTION, "db:test:prepare") @Konsole2.execute ClearLogsButton Clear Lo&gs @setGlobal(RAKE_ACTION, "log:clear") @Konsole2.execute ClearSessionsButton Clear Temp Data @setGlobal(RAKE_ACTION, "tmp:clear") @Konsole2.execute RunTestsButton Ru&n Tests @setGlobal(RAKE_ACTION, "test") @Konsole2.execute ShowStatsButton Sh&ow Source Statistics @setGlobal(RAKE_ACTION, "stats") @Konsole2.execute Spacer3 Vertical Expanding 0 16 Konsole2 Monospace 9 8 #!/bin/bash rake @global(RAKE_ACTION) #!/bin/bash echo "changing to directory @RailsRoot " cd @RailsRoot pwd if [[ `pwd` == @RailsRoot ]] then echo "executing RAKE @global(RAKE_ACTION)" rake @global(RAKE_ACTION) 2>&1 echo "DONE." else echo "Could not cd - please check your Rails Root setting!" fi ClearButton2 5 1 0 0 Clear Logging &Output tab Ser&ver unnamed 10 5 StartServerButton Start Ser&ver @setGlobal(SERVER_ACTION, "start") @Konsole3.execute KillServerButton &Kill Server @setGlobal(SERVER_ACTION, "kill") @Konsole3.execute Spacer3_2 Vertical Expanding 0 191 Konsole3 Monospace 9 #!/bin/bash echo "changing to directory @RailsRoot " cd @RailsRoot if [[ `pwd` == @RailsRoot ]] then if [[ @global(SERVER_ACTION) == "kill" ]] then echo "Killing server..." ruby -e 'pid=`ps aux | grep script/server`.split(/\s+/)[1]; p "killing PID #{pid}"; `kill -9 #{pid}`; p "Exit Status was #{$?.exitstatus}."' 2>&1 else echo "Starting server (this may take a while!)..." script/server 2>&1 fi else echo "Could not cd - please check your Rails Root setting!" fi Label4 Rails Root RailsRoot /home/www/ @widgetText StartServerButton released() Konsole3 clear() Form1 widgetOpened() Form1 adjustSize() ComboBox1 widgetTextChanged(const QString&) commands populate() KillServerButton released() Konsole3 clear() ClearButton1 released() Konsole1 clear() RailsRoot TabWidget1 LineEdit1 ComboBox1 command1 command2 command3 command4 command5 command6 ExecButton1 Konsole1 ExecButton3 VersionSelect LoadFixturesButton DumpSchemaButton PrepareTestButton ClearLogsButton ClearSessionsButton RunTestsButton Konsole2