Sha256: 96f63cfd4cd215f33e1feaa854dafbf62e4289671355a50d66d5e214a2940c64

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

module Cucover
  class Cli
    def initialize(args)
      @args = args
    end

    def start
      command_type.new(@args).execute
    end
    
    private
    
    def command_type
      if @args.index('--')
        CliCommands::Cucumber
      elsif @args.index('--coverage-of')
        CliCommands::CoverageOf
      elsif @args.index('--show-recordings')
        CliCommands::ShowRecordings
      else
        raise("Sorry: I don't understand these command line arguments: #{@args.inspect}. Soon I will say something more helpful here.")
      end
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mattwynne-cucover-0.1.0 lib/cucover/cli.rb