Sha256: 1c2a85f82e2b4d32bd998231f8fe0f5c49922782d9efb7402fe39d40c557afcb

Contents?: true

Size: 395 Bytes

Versions: 5

Compression:

Stored size: 395 Bytes

Contents

Standup.script do
  self.description = 'Check nodes status and display useful info'
  
  def run
    if instance
      puts "Node:        #{node.name}"
      puts "State:       #{instance.state}"
      puts "IP:          #{instance.external_ip}"
      puts "SSH String:  #{node.ssh_string}"
    else
      puts "Node:        #{node.name}"
      puts "State:       not running"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
standup-0.3.3 scripts/status.rb
standup-0.3.2 scripts/status.rb
standup-0.3.1 scripts/status.rb
standup-0.3.0 scripts/status.rb
standup-0.2.0 scripts/status.rb