Class: Kender::FactoryGirlLint
- Inherits:
-
Command
- Object
- Command
- Kender::FactoryGirlLint
show all
- Defined in:
- lib/kender/commands/factorygirl_lint.rb
Instance Attribute Summary
Attributes inherited from Command
#success
Instance Method Summary
collapse
Methods inherited from Command
all, all_names, all_success?, commands, #execute, inherited, #name, #run
Instance Method Details
#available? ⇒ Boolean
4
5
6
|
# File 'lib/kender/commands/factorygirl_lint.rb', line 4
def available?
File.exists?(File.join(Dir.pwd, 'lib', 'tasks', 'factory_girl_lint.rake'))
end
|
#command ⇒ Object
8
9
10
|
# File 'lib/kender/commands/factorygirl_lint.rb', line 8
def command
'bundle exec rake factory_girl:lint'
end
|