Class: Spring::Commands::Rake
- Inherits:
-
Object
- Object
- Spring::Commands::Rake
- Defined in:
- lib/spring/commands/rake.rb
Class Attribute Summary collapse
-
.environment_matchers ⇒ Object
Returns the value of attribute environment_matchers.
Instance Method Summary collapse
Class Attribute Details
.environment_matchers ⇒ Object
Returns the value of attribute environment_matchers.
5 6 7 |
# File 'lib/spring/commands/rake.rb', line 5 def environment_matchers @environment_matchers end |
Instance Method Details
#env(args) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/spring/commands/rake.rb', line 12 def env(args) self.class.environment_matchers.each do |matcher, environment| return environment if matcher === args.first end nil end |
#exec_name ⇒ Object
19 20 21 |
# File 'lib/spring/commands/rake.rb', line 19 def exec_name "rake" end |