Class: Drupid::Updater::AbstractAction

Inherits:
Object
  • Object
show all
Includes:
Drupid::Utils
Defined in:
lib/drupid/updater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(p, c) ⇒ AbstractAction

Returns a new instance of AbstractAction.



574
575
576
577
578
# File 'lib/drupid/updater.rb', line 574

def initialize(p, c)
  @platform = p
  @component = c
  @pending = true
end

Instance Attribute Details

#componentObject (readonly)

Returns the value of attribute component.



572
573
574
# File 'lib/drupid/updater.rb', line 572

def component
  @component
end

#platformObject (readonly)

Returns the value of attribute platform.



571
572
573
# File 'lib/drupid/updater.rb', line 571

def platform
  @platform
end

Instance Method Details

#fire!Object



580
581
582
583
# File 'lib/drupid/updater.rb', line 580

def fire!
  _install # Implemented by subclasses
  @pending = false
end

#pending?Boolean

Returns:

  • (Boolean)


585
586
587
# File 'lib/drupid/updater.rb', line 585

def pending?
  @pending
end