Class: GitCompound::Command::Procedure::Update

Inherits:
GitCompound::Command::Procedure show all
Includes:
Element::Lock, Element::Manifest, Element::Subprocedure
Defined in:
lib/git_compound/command/procedure/update.rb

Overview

Update command procedure class

Instance Method Summary collapse

Methods included from Element::Subprocedure

included, #initialize, #subprocedure

Methods included from Element::Lock

#initialize, #locked?

Methods included from Element::Manifest

included, #initialize

Instance Method Details

#executeObject

Raises:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/git_compound/command/procedure/update.rb', line 14

def execute
  raise GitCompoundError,
        "Lockfile `#{Lock::FILENAME}` does not exist ! " \
        'You should use `build` command.' unless locked?

  protect_local_modifications
  check_dependencies
  update
  execute_tasks
  lock_updated_manifest
  remove_dormant_components
end