Class: Brut::CLI::Apps::Deploy::Check
Defined Under Namespace
Classes: Git
Instance Attribute Summary
#parent_command
Instance Method Summary
collapse
#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_class ⇒ Object
195
|
# File 'lib/brut/cli/apps/deploy.rb', line 195
def default_command_class = Git
|
#description ⇒ Object
194
|
# File 'lib/brut/cli/apps/deploy.rb', line 194
def description = "Check that a deploy can be reasonably expected to succeed"
|
#opts ⇒ Object
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)" ],
]
|