Permalink
Browse files

Better name: garlic session

  • Loading branch information...
1 parent 8af531f commit 0990fdee3467f6c4b1ead0f37d7049122fd1e987 @ianwhite committed Nov 1, 2008
Showing with 5 additions and 5 deletions.
  1. +1 −1 bin/garlic
  2. +3 −3 lib/garlic.rb
  3. 0 lib/garlic/{runner.rb → session.rb}
  4. +1 −1 lib/garlic/tasks.rb
View
@@ -15,7 +15,7 @@ garlic - run a command in different versions of rails
USAGE: garlic [options] [command]
COMMANDS:
-#{Garlic::Runner.commands_with_description.map{|method, desc| " %-17s %s" % [method, desc]}.join("\n")}
+#{Garlic::Session.commands_with_description.map{|method, desc| " %-17s %s" % [method, desc]}.join("\n")}
The default command is "default"
View
@@ -1,4 +1,4 @@
-require "garlic/runner"
+require "garlic/session"
require "garlic/configurator"
require "garlic/repo"
require "garlic/target"
@@ -16,9 +16,9 @@ module Version
String = [Major, Minor, Tiny].join('.')
end
- # return the current garlic runner
+ # return the current garlic session
def garlic(config = nil, &block)
- @garlic ||= Garlic::Runner.new(self)
+ @garlic ||= Garlic::Session.new(self)
load_config(config)
@garlic.configure(&block) if block_given?
@garlic
File renamed without changes.
View
@@ -14,7 +14,7 @@
end
namespace :garlic do
- Garlic::Runner.commands_with_description.each do |command, description|
+ Garlic::Session.commands_with_description.each do |command, description|
desc description
task command do
garlic.send command

0 comments on commit 0990fde

Please sign in to comment.