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

Version Path
neetob-0.4.16 lib/neetob/cli/heroku/commands.rb
neetob-0.4.15 lib/neetob/cli/heroku/commands.rb
neetob-0.4.14 lib/neetob/cli/heroku/commands.rb
neetob-0.4.13 lib/neetob/cli/heroku/commands.rb
neetob-0.4.12 lib/neetob/cli/heroku/commands.rb
neetob-0.4.11 lib/neetob/cli/heroku/commands.rb
neetob-0.4.10 lib/neetob/cli/heroku/commands.rb
neetob-0.4.9 lib/neetob/cli/heroku/commands.rb
neetob-0.4.8 lib/neetob/cli/heroku/commands.rb
neetob-0.4.7 lib/neetob/cli/heroku/commands.rb
neetob-0.4.6 lib/neetob/cli/heroku/commands.rb
neetob-0.4.5 lib/neetob/cli/heroku/commands.rb
neetob-0.4.4 lib/neetob/cli/heroku/commands.rb
neetob-ud-1.0.59 lib/neetob/cli/heroku/commands.rb
neetob-ud-0.2.8 lib/neetob/cli/heroku/commands.rb
neetob-ud-0.2.6 lib/neetob/cli/heroku/commands.rb
neetob-ud-0.2.4 lib/neetob/cli/heroku/commands.rb
neetob-ud-0.2.3 lib/neetob/cli/heroku/commands.rb
neetob-ud-0.2.2 lib/neetob/cli/heroku/commands.rb
neetob-ud-0.2.1 lib/neetob/cli/heroku/commands.rb