Class: Drupid::Updater::AbstractAction
- Inherits:
-
Object
- Object
- Drupid::Updater::AbstractAction
- Includes:
- Drupid::Utils
- Defined in:
- lib/drupid/updater.rb
Direct Known Subclasses
DeleteAction, MoveAction, UpdateLibraryAction, UpdateProjectAction
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
Instance Method Summary collapse
- #fire! ⇒ Object
-
#initialize(p, c) ⇒ AbstractAction
constructor
A new instance of AbstractAction.
- #pending? ⇒ Boolean
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
#component ⇒ Object (readonly)
Returns the value of attribute component.
572 573 574 |
# File 'lib/drupid/updater.rb', line 572 def component @component end |
#platform ⇒ Object (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
585 586 587 |
# File 'lib/drupid/updater.rb', line 585 def pending? @pending end |