class CfScript::Command::Apps::RenameCommand
Public Class Methods
new()
click to toggle source
Calls superclass method
CfScript::Command::Base::new
# File lib/cf_script/command/cf/apps/rename.rb, line 3 def initialize super(:apps, :rename) end
Public Instance Methods
run(old_name, new_name) { |true| ... }
click to toggle source
# File lib/cf_script/command/cf/apps/rename.rb, line 7 def run(old_name, new_name, &block) run_cf self, old_name, new_name do |output| return false unless good_run?(output, check_failed: false) if output.ok? block_given? ? yield(true) : true else error "failed to rename app" return false end end end