Class: Spring::Commands::Rake

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

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.environment_matchersObject

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_nameObject



19
20
21
# File 'lib/spring/commands/rake.rb', line 19

def exec_name
  "rake"
end