Sha256: e8c2efbe012972c285b07d76f481fdb6b332e0624be8f3bc848ca0fa396cd977

Contents?: true

Size: 434 Bytes

Versions: 57

Compression:

Stored size: 434 Bytes

Contents

Standup.script :node 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}"
    else
      puts "Node:        #{node.name}"
      puts "State:       not running"
    end
  end
      
  def self.execute
    run_on_nodes Standup::Settings.nodes.keys
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
standup-0.3.20 scripts/status.rb
standup-0.3.19 scripts/status.rb
standup-0.3.18 scripts/status.rb
standup-0.3.17 scripts/status.rb
standup-0.3.16 scripts/status.rb
standup-0.3.15 scripts/status.rb
standup-0.3.14 scripts/status.rb
standup-0.3.13 scripts/status.rb
standup-0.3.12 scripts/status.rb
standup-0.3.11 scripts/status.rb
standup-0.3.10 scripts/status.rb
standup-0.3.9 scripts/status.rb
standup-0.3.8 scripts/status.rb
standup-0.3.7 scripts/status.rb
standup-0.3.6 scripts/status.rb
standup-0.3.5 scripts/status.rb
standup-0.3.4 scripts/status.rb