Sha256: 34aec16efa5d4820d678255cb6255086b751bed889392bb1bbfbcd0aab1cc80a

Contents?: true

Size: 1.69 KB

Versions: 21

Compression:

Stored size: 1.69 KB

Contents

# frozen_string_literal: true

require "thor"

module Neetob
  class CLI < Thor
    require_relative "cli/heroku/commands"
    require_relative "cli/github/commands"
    require_relative "cli/users/commands"
    require_relative "cli/fetchorupdate_repos/execute"
    require_relative "cli/local/commands"
    require_relative "cli/code/commands"
    require_relative "cli/neeto_deploy/commands"

    class_option :sandbox,
      {
        type: :boolean, default: false,
        desc: "All the commands in sandbox mode will run only on the \"neeto-dummy\" app."
      }

    def self.start(*)
      super
    end

    desc "heroku", "Interact with any resource in Heroku"
    subcommand "heroku", Heroku::Commands

    desc "github", "Interact with any resource in Github"
    subcommand "github", Github::Commands

    desc "neetodeploy", "Interact with resources in neetoDeploy"
    subcommand "neetodeploy", NeetoDeploy::Commands

    desc "users", "Interact with the contributors of neeto apps"
    subcommand "users", Users::Commands

    desc "local", "Interact with the local neeto repos"
    subcommand "local", Local::Commands

    desc "code", "Interact with code base of neeto products"
    subcommand "code", Code::Commands

    desc "make_repos_uptodate", "Uptodate all neeto repos"
    option :repos, type: :array, aliases: "-r", default: ["*"],
      desc: "Github repo names. Can be matched using the '*' wildcard. Example: \"neeto*\" \"neeto-cal-web\", also providing \"all\" as value matches all neeto repos. Note: The default value is \"*\", hence all neeto repos would be affected."
    def make_repos_uptodate
      FetchorupdateRepos::Execute.new(options[:sandbox], options[:repos]).run
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
neetob-0.4.31 lib/neetob/cli.rb
neetob-0.4.30 lib/neetob/cli.rb
neetob-0.4.28 lib/neetob/cli.rb
neetob-0.4.27 lib/neetob/cli.rb
neetob-0.4.26 lib/neetob/cli.rb
neetob-0.4.24 lib/neetob/cli.rb
neetob-0.4.23 lib/neetob/cli.rb
neetob-0.4.22 lib/neetob/cli.rb
neetob-0.4.21 lib/neetob/cli.rb
neetob-0.4.20 lib/neetob/cli.rb
neetob-0.4.19 lib/neetob/cli.rb
neetob-0.4.16 lib/neetob/cli.rb
neetob-0.4.15 lib/neetob/cli.rb
neetob-0.4.14 lib/neetob/cli.rb
neetob-0.4.13 lib/neetob/cli.rb
neetob-0.4.12 lib/neetob/cli.rb
neetob-0.4.11 lib/neetob/cli.rb
neetob-0.4.10 lib/neetob/cli.rb
neetob-0.4.9 lib/neetob/cli.rb
neetob-0.4.8 lib/neetob/cli.rb