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.6.9 scripts/status.rb
standup-0.6.8 scripts/status.rb
standup-0.6.7 scripts/status.rb
standup-0.6.6 scripts/status.rb
standup-0.6.5 scripts/status.rb
standup-0.6.4 scripts/status.rb
standup-0.6.3 scripts/status.rb
standup-0.6.2 scripts/status.rb
standup-0.6.1 scripts/status.rb
standup-0.6.0 scripts/status.rb
standup-0.5.14 scripts/status.rb
standup-0.5.13 scripts/status.rb
standup-0.5.11 scripts/status.rb
standup-0.5.10 scripts/status.rb
standup-0.5.9 scripts/status.rb
standup-0.5.8 scripts/status.rb
standup-0.5.7 scripts/status.rb
standup-0.5.6 scripts/status.rb
standup-0.5.5 scripts/status.rb
standup-0.5.4 scripts/status.rb