lib/ripe/cli.rb
##
# Launch ripe console.  It is a REPL bound to the context of a
# +Ripe::WorkerController+ initialized in the working directory.
Launch ripe console.  It is a REPL bound to the context of a
+Ripe::WorkerController+ initialized in the working directory.
Launch ripe console . It is a REPL bound to the context of a + Ripe :: WorkerController + initialized in the working directory .
def console
      repo = Repo.new
      repo.attach
      unless repo.has_repository?
        abort "Cannot launch console: ripe repo not initialized"
      end
      ARGV.clear
      Ripl.config[:prompt] = proc do
        Hirb.enable unless Hirb::View.enabled?
        'ripe> '
      end
      Ripl.start :binding => repo.controller.instance_eval { binding }
    end
def console repo = Repo . new repo . attach unless repo . has_repository? abort "Cannot launch console: ripe repo not initialized" end ARGV . clear Ripl . config [ :prompt ] = proc do Hirb . enable unless Hirb :: View . enabled? 'ripe> ' end Ripl . start :binding => repo . controller . instance_eval { binding } end
Launch ripe console.
Launch ripe console .
# Do not send arguments to the REPL # This is the only place I could think of placing +Hirb#enable+. # Launch the REPL session in the context of +WorkerController+.