Class: Flux::CLI::Branch::Checks
- Inherits:
-
Thor
- Object
- Thor
- Flux::CLI::Branch::Checks
- Defined in:
- lib/flux/cli/git.rb
Constant Summary collapse
- G =
Flux::Git
- B =
G::Branch
Instance Method Summary collapse
Instance Method Details
#rebased(branch = B.current) ⇒ Object
54 55 56 57 58 59 60 61 62 |
# File 'lib/flux/cli/git.rb', line 54 def rebased(branch = B.current) branch = G::Branch(branch) parent = G::Branch([:parent]) unless branch.includes?(parent) raise Error, "`#{branch.fqdn}' is not rebased onto `#{parent.fqdn}'." end end |
#synced(branch = B.current) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/flux/cli/git.rb', line 42 def synced(branch = B.current) branch = G::Branch(branch) unless branch.synced? raise Error, "Local branch `#{branch.name}' is not synced." end end |