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.5.3 scripts/terminate.rb
standup-0.5.1 scripts/terminate.rb
standup-0.5.0 scripts/terminate.rb
standup-0.4.0 scripts/terminate.rb
standup-0.3.37 scripts/terminate.rb
standup-0.3.36 scripts/terminate.rb
standup-0.3.35 scripts/terminate.rb
standup-0.3.34 scripts/terminate.rb
standup-0.3.33 scripts/terminate.rb
standup-0.3.32 scripts/terminate.rb
standup-0.3.31 scripts/terminate.rb
standup-0.3.30 scripts/terminate.rb
standup-0.3.29 scripts/terminate.rb
standup-0.3.28 scripts/terminate.rb
standup-0.3.27 scripts/terminate.rb
standup-0.3.26 scripts/terminate.rb
standup-0.3.25 scripts/terminate.rb
standup-0.3.24 scripts/terminate.rb
standup-0.3.23 scripts/terminate.rb
standup-0.3.22 scripts/terminate.rb