Sha256: 84f1e171d5e8c38a5d746e0455fc64429eb3bf123804d14abb1762c84d465815

Contents?: true

Size: 374 Bytes

Versions: 5

Compression:

Stored size: 374 Bytes

Contents

desc 'with-rake', 'Run tests with `rake`', hide: true
def with_rake
  if Util.file_containing?('Rakefile', /^task.+default.+(spec|test|feature)/)
    invoke_cmd 'bundle_install'
    invoke_cmd 'yarn_install'

    Interaction.announce 'Running tests with `rake`'
    Util.system! 'rake'
  else
    Interaction.note '`rake` does not run tests.'
    :did_not_perform
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geordi-3.2.0 lib/geordi/commands/with_rake.rb
geordi-3.1.0 lib/geordi/commands/with_rake.rb
geordi-3.0.3 lib/geordi/commands/with_rake.rb
geordi-3.0.2 lib/geordi/commands/with_rake.rb
geordi-3.0.1 lib/geordi/commands/with_rake.rb