Sha256: 262d7b415313eafd856da0ea73e0d7ca5a45832144f017eed9d6027f9f0d27bd
Contents?: true
Size: 1.13 KB
Versions: 13
Compression:
Stored size: 1.13 KB
Contents
# frozen_string_literal: true require "thor" require_relative "config_vars/commands" require_relative "access/commands" require_relative "execute" module Neetob class CLI module Heroku class Commands < Thor desc "execute", "Run the given Heroku CLI command or Rails console command on Heroku apps" option :command, type: :string, aliases: "-c", required: true, desc: "Command to run on Heroku apps" option :rails, type: :boolean, aliases: "-r", default: false, desc: "Use this flag to run the given command in the Rails console" option :apps, type: :array, aliases: "-a", required: true, desc: "Heroku app names. Can be matched using the '*' wildcard. Example: \"neeto*\" \"neeto-cal-web-staging\"" def execute Execute.new(options[:apps], options[:command], options[:rails], options[:sandbox]).process end desc "config_vars", "Interact with the config(env) variables on Heroku apps" subcommand "config_vars", ConfigVars::Commands desc "access", "Interact with the users of the Heroku apps" subcommand "access", Access::Commands end end end end
Version data entries
13 entries across 13 versions & 1 rubygems