Module: PoolParty::Display

Included in:
Console
Defined in:
lib/poolparty/helpers/display.rb

Instance Method Summary collapse

Instance Method Details

#header(str = "") ⇒ Object



21
22
23
# File 'lib/poolparty/helpers/display.rb', line 21

def header(str="")
  "*** #{str}"
end

#pool_describe(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/poolparty/helpers/display.rb', line 4

def pool_describe(options={})
  if pools.size > 0
    pools.each do |k,v|
      print v.pretty_print
    end
  else
    pre = "\t"
    clouds.each do |name, cl|
      puts cl.pretty_name(pre*2, cl)
      puts cl.pretty_options(pre*2, cl) #cl.pretty_print("#{pre}\t")
    end
  end

  puts ""
  pools.size
end

#subheader(str = "") ⇒ Object



25
26
27
# File 'lib/poolparty/helpers/display.rb', line 25

def subheader(str="")
  "****** #{str}"
end