Class: Kender::CypressRails

Inherits:
Command
  • Object
show all
Defined in:
lib/kender/commands/cypress_rails.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

Kender might be in some projects which use cypress-rails but do not have this rake task.

Returns:

  • (Boolean)


6
7
8
# File 'lib/kender/commands/cypress_rails.rb', line 6

def available?
  in_gemfile?('cypress-rails') && Rake::Task.task_defined?('cypress_extended:enhanced_run')
end

#commandObject



10
11
12
# File 'lib/kender/commands/cypress_rails.rb', line 10

def command
  'bundle exec rake cypress_extended:enhanced_run'
end