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

Version Path
neetob-0.4.33 lib/neetob/cli/heroku/commands.rb
neetob-0.4.32 lib/neetob/cli/heroku/commands.rb
neetob-0.4.31 lib/neetob/cli/heroku/commands.rb
neetob-0.4.30 lib/neetob/cli/heroku/commands.rb
neetob-0.4.28 lib/neetob/cli/heroku/commands.rb
neetob-0.4.27 lib/neetob/cli/heroku/commands.rb
neetob-0.4.26 lib/neetob/cli/heroku/commands.rb
neetob-0.4.24 lib/neetob/cli/heroku/commands.rb
neetob-0.4.23 lib/neetob/cli/heroku/commands.rb
neetob-0.4.22 lib/neetob/cli/heroku/commands.rb
neetob-0.4.21 lib/neetob/cli/heroku/commands.rb
neetob-0.4.20 lib/neetob/cli/heroku/commands.rb
neetob-0.4.19 lib/neetob/cli/heroku/commands.rb