Class: Brut::CLI::Apps::Deploy::Check

Inherits:
Commands::BaseCommand show all
Defined in:
lib/brut/cli/apps/deploy.rb

Defined Under Namespace

Classes: Git

Instance Attribute Summary

Attributes inherited from Commands::BaseCommand

#parent_command

Instance Method Summary collapse

Methods inherited from Commands::BaseCommand

#accepts, #args_description, #argv, #bootstrap?, #commands, #default_command, #default_rack_env, #env, #env_vars, #execute, #name, #options, #puts, #run, #stderr, #stdin, #stdout, #system!

Instance Method Details

#default_command_classObject



195
# File 'lib/brut/cli/apps/deploy.rb', line 195

def default_command_class = Git

#descriptionObject



194
# File 'lib/brut/cli/apps/deploy.rb', line 194

def description = "Check that a deploy can be reasonably expected to succeed"

#optsObject



196
197
198
199
200
# File 'lib/brut/cli/apps/deploy.rb', line 196

def opts = [
  [ "--[no-]check-branch", "If true, requires that you are on 'main' (default true)" ],
  [ "--[no-]check-changes", "If true, requires that you have committed all local changes (default true)" ],
  [ "--[no-]check-push", "If true, requires that you are in sync with origin/main (default true)" ],
]