
Having been told by Raye that he showed his FBI badge to someone during a bus jacking, Naomi deduces that Kira must have been on the bus. After the sudden death of her fiancé a few days later, which she blames Kira for, Naomi decides to take part in the Kira case herself. He tells Naomi not to involve herself in the investigation for her own safety. After she welcomes him back at their hotel room, Penber informs her that he was caught in a bus jacking and that the bus jacker was the same man who had hit a bank two days prior. As such, she becomes incredibly worried when a bus jacking incident happened as Penber is investigating the Kira Case. Prior to the events of Death Note, Naomi had already resigned from the FBI to marry her fiancé Raye Penber. Unfortunately, she eventually lets her feelings get in the way of her investigative abilities.
#Raye taskr how to#
She is often seen wearing black leather clothes.ĭescribed by Death Note 13: How to Read as formerly a "first rate" FBI agent with "remarkable investigative ability," Naomi left the Bureau in October 2003 for the sake of starting a family in the United States. = 20160411150810 CreateFoo: migrated (0.Naomi is an attractive young woman with long black hair and hazel eyes. The output looks like this: Running from rake task: db:migrate
#Raye taskr code#
Here's a new rails project with this code & 1 migration. Then, in an initializer, you can do: if defined? $rake_task_name Here's a really quick an dirty example which you could do in the Rakefile: module RakeTaskName I think the easiest way is probably to just extend the Rake::Task#invoke method to add a global variable which you could then access in initializers, or from wherever else you want.

You could redefine tasks using Rake::Task#enhance to create a variable before invoking the original task, but that seems a bit messy and you'll have to worry about what to do with tasks like :environment and :default. Only then, I believe, you can use one of the solutions in the other answers. If the rake command is a binstub in the RAILS_ROOT/bin/ directory, you need to remove the binstub with spring binstup -remove rake. So, unless you monkey-patched Spring significantly (replaced the serve method with your own, but you'd need to handle working with the socket yourself), you need to stop calling your rake tasks inside the Spring environment. The $0 and ARGV variables are also set after initialization, in the fork block.

The rails initializers are run in the preload method which is run before the command name is read from the socket. # this is where Spring gets the command name and it's ARGV and environmentĪrgs, env = JSON.load(client.read(_i)).values_at("args", "env") # this is where rails initialization occurs getting standard input / output streams from the client socket The relevant parts of the method are these: def serve(client) It is the serve method in which Spring gets the ARGV of the command being run from the socket, forks itself and runs the command. the rake task name) when using Spring, as Spring itself does not know yet! Even the after_fork hook that Spring provides won't help, because it is being also run after rails initialization.Ī proof can be seen in the Spring source code. Thus, during rails initialization, there seems to be no way of getting the command and its arguments (e.g. When using Spring, the command being run is handed over to the Spring server process using a UNIX socket and unfortunately Spring server reads this socket to get the command and its arguments after initializing the rails environment.

None of the other answers presented here will work unless you stop using Spring, because Spring changes the way rake tasks are called significantly.
