Sha256: dc150868f6332182f7683bf50494eaa1f5954dc627a299c3d5f691ffa08fb99a
Contents?: true
Size: 1.13 KB
Versions: 50
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]).run 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
50 entries across 50 versions & 2 rubygems