!RBIX 12079494195756429234 x M 1 n n x 10 __script__ i 341 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 44 43 3 79 49 4 1 13 7 5 45 6 7 7 8 64 49 9 1 13 10 44 15 7 10 64 49 11 0 49 12 2 15 19 0 15 1 19 1 15 45 13 14 49 15 0 56 16 50 17 0 15 45 13 18 20 1 49 19 1 15 45 6 20 7 8 64 20 0 7 5 49 9 1 13 18 3 49 12 2 15 15 5 45 21 22 47 49 1 1 15 45 23 24 49 25 0 49 26 0 15 29 219 1 26 93 0 15 20 1 49 27 0 9 170 99 43 28 7 29 49 9 1 7 30 99 43 28 7 31 49 9 1 47 101 32 7 33 63 3 49 34 1 15 5 79 47 49 35 1 8 216 45 36 37 20 1 49 38 1 9 209 99 43 28 7 31 20 1 49 12 2 15 5 45 36 39 20 1 49 40 1 1 20 1 47 49 41 3 8 216 5 20 1 47 49 41 1 30 8 280 26 26 93 1 15 29 235 0 7 23 98 42 1 30 8 241 25 92 1 27 8 246 15 7 43 8 247 1 9 276 45 23 44 49 45 0 7 46 49 47 1 9 273 45 23 48 49 45 0 49 46 0 8 274 1 8 277 1 15 27 34 26 93 2 15 29 295 0 7 23 98 42 1 30 8 301 25 92 2 27 8 306 15 7 43 8 307 1 9 336 45 23 49 49 45 0 7 46 49 47 1 9 333 45 23 50 49 45 0 49 46 0 8 334 1 8 337 1 15 15 2 11 I a I 2 I 0 I 0 n p 51 s 8 optparse x 7 require s 8 rbconfig x 4 Hash x 16 new_from_literal x 11 environment x 3 ENV n s 9 RAILS_ENV x 2 [] s 11 development x 3 dup x 3 []= x 4 ARGV n x 5 clone M 1 p 2 x 9 for_block t n x 9 __block__ i 261 57 19 0 15 45 0 1 99 43 2 7 3 49 4 1 49 5 1 19 1 15 20 0 7 6 64 13 18 2 49 7 1 15 15 20 0 7 8 64 49 9 1 15 20 0 7 10 64 7 11 64 45 12 13 7 14 64 7 15 64 56 16 50 17 5 15 20 0 7 8 64 49 9 1 15 20 0 7 18 64 7 19 64 7 20 64 56 21 50 17 3 15 45 22 23 43 24 7 25 64 49 4 1 7 26 13 70 9 121 15 44 43 27 7 28 78 49 29 2 6 26 49 30 1 9 129 1 8 211 20 0 7 8 64 49 9 1 15 20 0 7 31 64 49 9 1 15 20 0 7 32 64 49 9 1 15 20 0 7 33 45 0 34 99 43 2 7 3 49 4 1 49 35 1 47 101 36 7 37 63 3 49 9 1 15 20 0 7 8 64 49 9 1 15 20 0 7 38 64 49 9 1 15 20 0 7 32 64 49 9 1 15 26 93 0 15 29 229 0 20 0 56 39 50 40 0 30 8 257 26 93 1 15 24 13 45 41 42 12 49 43 1 10 246 8 252 15 8 216 25 8 257 15 92 1 27 34 92 0 27 11 I c I 2 I 1 I 1 n p 44 x 4 File n x 7 Globals x 2 $0 x 2 [] x 8 basename s 57 Usage: runner [options] ('Some.ruby(code)' or a filename) x 7 banner= s 0 x 9 separator s 2 -e s 18 --environment=name x 6 String n s 88 Specifies the environment for the runner to operate under (test/development/production). s 20 Default: development M 1 p 2 x 9 for_block t n x 9 __block__ i 19 57 19 0 15 21 2 0 7 0 20 0 13 18 3 49 1 2 15 11 I 6 I 1 I 1 I 1 n p 2 x 11 environment x 3 []= p 5 I 0 I d I 1 I f I 13 x 74 /Users/santiago/WyeWorks/Projs/rails/railties/lib/rails/commands/runner.rb p 1 x 1 v x 2 on s 2 -h s 6 --help s 23 Show this help message. M 1 p 2 x 9 for_block t n x 9 __block__ i 19 99 43 0 7 1 49 2 1 21 1 0 49 3 1 15 5 48 4 11 I 3 I 0 I 0 I 0 I -2 p 5 x 7 Globals x 7 $stdout x 2 [] x 4 puts x 4 exit p 3 I 0 I 14 I 13 x 74 /Users/santiago/WyeWorks/Projs/rails/railties/lib/rails/commands/runner.rb p 0 x 8 RbConfig n x 6 CONFIG s 7 host_os n x 6 Regexp s 11 mswin|mingw x 3 new x 2 =~ s 69 You can also use runner as a shebang line for your scripts like this: s 61 ------------------------------------------------------------- s 15 #!/usr/bin/env n x 11 expand_path x 4 to_s s 7 runner s 54 Product.find(:all).each { |p| p.price *= 2 ; p.save! } M 1 p 2 x 9 for_block t n x 9 __block__ i 17 57 19 0 15 21 2 1 13 10 16 15 20 0 22 2 1 11 I 4 I 1 I 1 I 1 n p 0 p 3 I 0 I 20 I 11 x 74 /Users/santiago/WyeWorks/Projs/rails/railties/lib/rails/commands/runner.rb p 1 x 1 o x 6 order! x 13 StandardError n x 3 === p 43 I 0 I 7 I 4 I 8 I 15 I 9 I 22 I b I 2b I d I 36 I e I 39 I f I 3c I d I 42 I 11 I 4b I 13 I 53 I 14 I 56 I 13 I 5c I 16 I 81 I 17 I 8a I 18 I 93 I 19 I 9c I 1a I b9 I 1b I c2 I 1c I cb I 1d I d4 I 20 I 105 x 74 /Users/santiago/WyeWorks/Projs/rails/railties/lib/rails/commands/runner.rb p 2 x 4 opts x 11 script_name x 7 options n x 6 delete n x 8 APP_PATH n x 5 Rails n x 11 application x 20 require_environment! x 4 nil? x 7 Globals x 7 $stderr s 5 Run ' x 2 $0 x 4 to_s s 14 -h' for help. x 4 puts x 4 exit x 4 File n x 6 exist? n x 4 read x 4 eval x 16 vm_const_defined s 8 constant n x 6 logger x 5 flush x 11 respond_to? n n n p 43 I 0 I 1 I 9 I 2 I 12 I 4 I 36 I 5 I 3a I 7 I 46 I 23 I 4f I 25 I 64 I 27 I 6d I 28 I 77 I 2b I 85 I 2c I a2 I 2d I aa I 2e I b4 I 2f I bf I 30 I d1 I 32 I dc I 35 I f9 I 36 I 114 I 35 I 135 I 36 I 150 I 35 I 155 x 74 /Users/santiago/WyeWorks/Projs/rails/railties/lib/rails/commands/runner.rb p 2 x 7 options x 12 code_or_file