Sha256: 6addbac052f044d8bdb3c940c54a0199859abd0baaf31333be0763c1c7bca8ea

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

ENV["CARDIO_COMMANDS"] = "NO_RUN"

require "cardio/commands"

module Decko
  class Commands < Cardio::Commands
    def map
      @map ||= super.merge(
        server: { desc: "start a local web server", group: :shark, alias: :s },
        cucumber: { desc: "run cucumber tests", group: :monkey, alias: :cc, via: :call}
      )
    end

    def generator_requirement
      "decko/generators"
    end

    def gem
      "decko"
    end

    def run_cucumber
      require "decko/commands/cucumber_command"
      CucumberCommand.new(args).run
    end

    def run_version
      puts "Decko #{Cardio::Version.release}".light_cyan
    end

    new(ARGV).run
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decko-0.14.2 lib/decko/commands.rb
decko-0.14.1 lib/decko/commands.rb
decko-0.14.0 lib/decko/commands.rb