lib/sprinkle/actors/vlad.rb in sprinkle-0.7.1.1 vs lib/sprinkle/actors/vlad.rb in sprinkle-0.7.2

- old
+ new

@@ -21,21 +21,21 @@ def initialize(&block) #:nodoc: self.instance_eval &block if block end - def servers_for_role? + def servers_for_role? #:nodoc: raise "The vlad actor needs a maintainer. "+ "Please file an issue on github.com/sprinkle-tool/sprinkle if you can help." end - def sudo? + def sudo? #:nodoc: # TODO raise end - def sudo_command + def sudo_command #:nodoc: "sudo" end # Defines a script file which will be included by vlad. Use these # script files to set vlad specific configurations. Multiple scripts @@ -51,11 +51,11 @@ @loaded_recipes ||= [] require name @loaded_recipes << name end - def install(installer, roles, opts={}) + def install(installer, roles, opts={}) #:nodoc: @installer=installer if installer.install_sequence.include?(:TRANSFER) process_with_transfer(installer.package.name, installer.install_sequence, roles, opts) else process(installer.package.name, installer.install_sequence, roles, opts) @@ -65,11 +65,11 @@ raise Sprinkle::Errors::RemoteCommandFailure.new(installer, {}, e) ensure @installer = nil end - def verify(verifier, roles, opts={}) + def verify(verifier, roles, opts={}) #:nodoc: process(verifier.package.name, commands, roles, :suppress_and_return_failures => true) end protected @@ -95,21 +95,21 @@ run after unless after.empty? end invoke(task) end - def invoke(t) + def invoke(t) #:nodoc: t.invoke return true rescue ::Rake::CommandFailedError => e return false if opts[:suppress_and_return_failures] # Reraise error if we're not suppressing it raise e end private - def task_sym(name) + def task_sym(name) #:nodoc: "install_#{name.to_task_name}".to_sym end end end end