Sha256: 84cf8e4393d841594430400c795a589f6dd046a53c0fae3165c9a12594386628

Contents?: true

Size: 556 Bytes

Versions: 4

Compression:

Stored size: 556 Bytes

Contents

require 'thor'
require 'aruba/console'
require 'aruba/initializer'

# Aruba
module Aruba
  # Command line Interface
  #
  # @private
  class Cli < Thor
    def self.exit_on_failure?
      true
    end

    desc 'console', "Start aruba's console"
    def console
      Aruba::Console.new.start
    end

    desc 'init', 'Initialize aruba'
    option :test_framework, default: 'cucumber', enum: %w(cucumber rspec minitest), desc: 'Choose which test framework to use'
    def init
      Aruba::Initializer.new.call(options[:test_framework])
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aruba-1.0.0 lib/aruba/cli.rb
aruba-1.0.0.pre.alpha.5 lib/aruba/cli.rb
aruba-1.0.0.pre.alpha.4 lib/aruba/cli.rb
aruba-1.0.0.pre.alpha.3 lib/aruba/cli.rb