Sha256: 52ca54783d3ad57d516b87336e1e67020cf5a4165627ba0d5c5c506670db380b

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

require "thor"

module Lita
  class CLI < Thor
    include Thor::Actions

    def self.source_root
      File.expand_path("../../..", __FILE__)
    end

    default_task :start

    class_option :config,
      aliases: "-c",
      banner: "PATH",
      default: "lita_config.rb",
      desc: "Path to the configuration file to use"

    desc "start", "Starts Lita"
    def start
      Bundler.require
      Lita.run(options[:config])
    end

    desc "new NAME", "Generates a new Lita project (default name: lita)"
    def new(name = "lita")
      directory "skeleton", name
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lita-1.1.2 lib/lita/cli.rb
lita-1.1.1 lib/lita/cli.rb
lita-1.1.0 lib/lita/cli.rb
lita-1.0.0 lib/lita/cli.rb