Class: Drupid::Updater::InstallProjectAction

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

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, project) ⇒ InstallProjectAction

Returns a new instance of InstallProjectAction.



656
657
658
659
# File 'lib/drupid/updater.rb', line 656

def initialize(platform, project)
  raise "#{project.name} already exists." if platform.get_project(project.name)
  super
end

Instance Method Details

#msgObject



661
662
663
# File 'lib/drupid/updater.rb', line 661

def msg
  "#{Tty.blue}[Install]#{Tty.white} #{component.extended_name}#{Tty.reset} (#{platform.dest_path(component)})"
end