Sha256: 04a293b8cbbce8a41f57f0ec2889a62c756b710e27cc178835d0dd35a2920802

Contents?: true

Size: 285 Bytes

Versions: 57

Compression:

Stored size: 285 Bytes

Contents

Standup.script :node do
  self.description = 'Terminate nodes'
  
  def run
    return unless instance
    if bright_ask("Do you really want to terminate node #{node.name}? [yes/NO]").strip.downcase == 'yes'
      instance.terminate
    else
      bright_p "aborted"
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
standup-0.6.9 scripts/terminate.rb
standup-0.6.8 scripts/terminate.rb
standup-0.6.7 scripts/terminate.rb
standup-0.6.6 scripts/terminate.rb
standup-0.6.5 scripts/terminate.rb
standup-0.6.4 scripts/terminate.rb
standup-0.6.3 scripts/terminate.rb
standup-0.6.2 scripts/terminate.rb
standup-0.6.1 scripts/terminate.rb
standup-0.6.0 scripts/terminate.rb
standup-0.5.14 scripts/terminate.rb
standup-0.5.13 scripts/terminate.rb
standup-0.5.11 scripts/terminate.rb
standup-0.5.10 scripts/terminate.rb
standup-0.5.9 scripts/terminate.rb
standup-0.5.8 scripts/terminate.rb
standup-0.5.7 scripts/terminate.rb
standup-0.5.6 scripts/terminate.rb
standup-0.5.5 scripts/terminate.rb
standup-0.5.4 scripts/terminate.rb