Sha256: 730584b7d402857501a6fe05a6938ae9e76ddc947ace4c09426106d50558d68c

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

ENV["CARDIO_COMMANDS"] = "NO_RUN"

require "cardio/commands"

module Decko
  class Commands < Cardio::Commands
    extend Cardio::Commands::Accessors

    commands[:rails] << (aliases["s"] = "server")
    commands[:custom] << (aliases["cc"] = "cucumber")

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

    def rake_prefix
      "decko"
    end

    def run_rails
      require "decko/generators" if command == "generate"
      super
    end

    new(ARGV).run
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decko-0.13.4 lib/decko/commands.rb
decko-0.13.3 lib/decko/commands.rb
decko-0.13.2 lib/decko/commands.rb
decko-0.13.1 lib/decko/commands.rb
decko-0.13.0 lib/decko/commands.rb
decko-0.12.0 lib/decko/commands.rb