lib/boson.rb in boson-0.0.1 vs lib/boson.rb in boson-0.1.0
- old
+ new
@@ -1,8 +1,8 @@
$:.unshift File.dirname(__FILE__) unless $:.include? File.expand_path(File.dirname(__FILE__))
%w{hirb alias}.each {|e| require e }
-%w{runner runners/repl_runner repo manager loader inspector library}.each {|e| require "boson/#{e}" }
+%w{runner runners/console_runner repo manager loader inspector library}.each {|e| require "boson/#{e}" }
%w{argument method comment}.each {|e| require "boson/inspectors/#{e}_inspector" }
# order of library subclasses matters
%w{module file gem require}.each {|e| require "boson/libraries/#{e}_library" }
%w{namespace view command util commands option_parser index scientist}.each {|e| require "boson/#{e}" }
@@ -38,11 +38,11 @@
File.expand_path(e) != repo.dir }
Repo.new(dir) if dir
end
end
- # The array of loaded repositories.
+ # The array of loaded repositories
def repos
@repos ||= [repo, local_repo].compact
end
def main_object=(value) #:nodoc:
@@ -52,11 +52,12 @@
def library(query, attribute='name') #:nodoc:
libraries.find {|e| e.send(attribute) == query }
end
# Start Boson by loading repositories and their configured libraries.
+ # See ConsoleRunner.start for its options.
def start(options={})
- ReplRunner.start(options)
+ ConsoleRunner.start(options)
end
# Invoke an action on the main object.
def invoke(*args, &block)
main_object.send(*args, &block)
\ No newline at end of file