Module: Jupiter
- Extended by:
- Jupiter
- Included in:
- Jupiter
- Defined in:
- lib/jupiter.rb,
lib/jupiter/cli.rb,
lib/jupiter/host.rb,
lib/jupiter/uuid.rb,
lib/jupiter/nagios.rb,
lib/jupiter/version.rb,
lib/jupiter/template.rb,
lib/jupiter/cli/output.rb,
lib/jupiter/cli/colorizer.rb,
lib/jupiter/configuration.rb,
lib/jupiter/virtualmachine.rb
Defined Under Namespace
Classes: Cli, Configuration, Host, Input, InvalidSelectionError, Nagios, Screen, Template, TextTemplate, UUID, VirtualMachine
Constant Summary
collapse
- VERSION =
"0.8.0"
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
14
15
16
|
# File 'lib/jupiter.rb', line 14
def configuration
@configuration
end
|
Instance Method Details
#host_by_name(name) ⇒ Object
36
37
38
|
# File 'lib/jupiter.rb', line 36
def host_by_name(name)
Jupiter.hosts.find { |esxhost| esxhost.name == name }
end
|
#hosts ⇒ Object
20
21
22
|
# File 'lib/jupiter.rb', line 20
def hosts
@hosts ||= configuration.hosts.map { |host| Host.new(host) }
end
|
#nagios ⇒ Object
32
33
34
|
# File 'lib/jupiter.rb', line 32
def nagios
@nagios ||= configuration.nagios
end
|
#templates ⇒ Object
28
29
30
|
# File 'lib/jupiter.rb', line 28
def templates
@templates ||= configuration.templates
end
|
#vmusers ⇒ Object
24
25
26
|
# File 'lib/jupiter.rb', line 24
def vmusers
@vmusers ||= configuration.vmusers
end
|