Sha256: cce4f4bf20ef68dbead7d09f98bbedc6232110ceca6f1fdd21cdcd74712f5ea3

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module RailsTalks
  module Runner
    class << self

      def run_tests(opts)
        run_rake(opts, 'Rails tests started', 'Rails tests ended')
      end

      def run_rake(opts, before = nil, after = nil)
        before ||= "Rake task '#{opts[0]}' started"
        after ||= "Rake task '#{opts[0]}' ended"
        Talks.info before
        system "bundle exec rake #{opts[0..-1]}"
        Talks.info after
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-talks-0.0.3 lib/rails-talks/runner.rb