Sha256: 8ccd3c85f49c13aaef0d928215703e3cef7219f074c2f968a9e2be0ed906542e

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 KB

Contents

require "souls"
module Souls
  class CLI < Thor
    desc "api [COMMAND]", "SOULs API Commands"
    subcommand "api", API

    desc "gcloud [COMMAND]", "SOULs Gcloud Commands"
    subcommand "gcloud", Gcloud

    desc "docker [COMMAND]", "SOULs Docker Commands"
    subcommand "docker", Docker

    desc "create [COMMAND]", "SOULs Create Worker"
    subcommand "create", Create

    desc "sync", " SOULs Sync Commands"
    subcommand "sync", Sync

    desc "upgrade", "SOULs Upgrade Commands"
    subcommand "upgrade", Upgrade

    desc "worker [COMMAND]", "SOULs Worker Commands"
    subcommand "worker", Worker

    # rubocop:disable Style/StringHashKeys
    map "c" => :console
    map "s" => :server
    map "db:migrate:reset" => :migrate_reset
    map "db:migrate" => :migrate
    map "db:create_migration" => :create_migration
    map "db:add_column" => :add_column
    map "db:rename_column" => :rename_column
    map "db:change_column" => :change_column
    map "db:remove_column" => :remove_column
    map "db:drop_table" => :drop_table
    map "db:create" => :db_create
    map "db:seed" => :seed
    map "t" => :test
    map ["-v", "--v", "--version", "-version"] => :version
    # rubocop:enable Style/StringHashKeys

    desc "version", "SOULs Version"
    def version
      puts(Souls::VERSION)
    end

    desc "test", "Run Rspec & Rubocop"
    def test
      system("rubocop -A")
      system("bundle exec rspec")
    end

    def self.exit_on_failure?
      false
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
souls-0.54.6 lib/souls/cli.rb
souls-0.54.5 lib/souls/cli.rb
souls-0.54.4 lib/souls/cli.rb
souls-0.54.3 lib/souls/cli.rb
souls-0.54.2 lib/souls/cli.rb
souls-0.54.1 lib/souls/cli.rb
souls-0.54.0 lib/souls/cli.rb
souls-0.53.5 lib/souls/cli.rb
souls-0.53.4 lib/souls/cli.rb
souls-0.53.3 lib/souls/cli.rb
souls-0.53.2 lib/souls/cli.rb