Permalink
Browse files

Clean up requires and use autoload

  • Loading branch information...
1 parent 2e66cb2 commit c01085eada355c1e5a3336bb4c08bf1c778a2b93 @joshuaclayton joshuaclayton committed Sep 8, 2011
Showing with 10 additions and 11 deletions.
  1. +6 −11 lib/kumade.rb
  2. +2 −0 lib/kumade/base.rb
  3. +2 −0 lib/kumade/deployer.rb
View
@@ -1,13 +1,8 @@
-require 'rake'
-require 'thor'
-require 'stringio'
-
-require 'kumade/base'
-require 'kumade/git'
-require 'kumade/deployer'
-require 'kumade/runner'
-require 'kumade/railtie'
-require 'kumade/deployment_error'
-
module Kumade
+ autoload :Base, "kumade/base"
+ autoload :Git, "kumade/git"
+ autoload :Deployer, "kumade/deployer"
+ autoload :Runner, "kumade/runner"
+ autoload :Railtie, "kumade/railtie"
+ autoload :DeploymentError, "kumade/deployment_error"
end
View
@@ -1,3 +1,5 @@
+require "thor"
+
module Kumade
class Base < Thor::Shell::Color
def initialize
@@ -1,3 +1,5 @@
+require "rake"
+
module Kumade
class Deployer < Base
DEPLOY_BRANCH = "deploy"

0 comments on commit c01085e

Please sign in to comment.