Class: Drupid::Updater::UpdateLibraryAction

Inherits:
AbstractAction show all
Defined in:
lib/drupid/updater.rb

Direct Known Subclasses

InstallLibraryAction

Instance Attribute Summary

Attributes inherited from AbstractAction

#component, #platform

Instance Method Summary collapse

Methods inherited from AbstractAction

#fire!, #pending?

Methods included from Drupid::Utils

#blah, #bzr, #compare_paths, #curl, #cvs, #debug, #dont_debug, #git, #hg, #ignore_interrupts, #interactive_shell, #odie, #ofail, #ohai, #owarn, #runBabyRun, #svn, #tempdir, #uncompress, #which, #writeFile

Constructor Details

#initialize(platform, library) ⇒ UpdateLibraryAction

Returns a new instance of UpdateLibraryAction.



668
669
670
671
# File 'lib/drupid/updater.rb', line 668

def initialize(platform, library)
  raise "#{library.extended_name} does not exist locally" unless library.exist?
  super
end

Instance Method Details

#msgObject



673
674
675
# File 'lib/drupid/updater.rb', line 673

def msg
  "#{Tty.blue}[Update]#{Tty.white}  Library #{component.extended_name}#{Tty.reset} (#{platform.contrib_path + component.target_path})"
end