Class: Spring::Commands::Rake

Inherits:
Command
  • Object
show all
Defined in:
lib/spring/commands.rb

Instance Method Summary collapse

Methods inherited from Command

preloads, #preloads, preloads=

Instance Method Details

#call(args) ⇒ Object



144
145
146
147
# File 'lib/spring/commands.rb', line 144

def call(args)
  ARGV.replace args
  ::Rake.application.run
end

#descriptionObject



149
150
151
# File 'lib/spring/commands.rb', line 149

def description
  "Run a rake task."
end

#setupObject



139
140
141
142
# File 'lib/spring/commands.rb', line 139

def setup
  super
  require "rake"
end