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

#configurationObject

Returns the value of attribute configuration.



14
15
16
# File 'lib/jupiter.rb', line 14

def configuration
  @configuration
end

Instance Method Details

#configureObject



16
17
18
# File 'lib/jupiter.rb', line 16

def configure
  self.configuration ||= Configuration.load_from_yaml!
end

#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

#hostsObject



20
21
22
# File 'lib/jupiter.rb', line 20

def hosts
  @hosts ||= configuration.hosts.map { |host| Host.new(host) }
end

#nagiosObject



32
33
34
# File 'lib/jupiter.rb', line 32

def nagios
  @nagios ||= configuration.nagios
end

#templatesObject



28
29
30
# File 'lib/jupiter.rb', line 28

def templates
  @templates ||= configuration.templates
end

#vmusersObject



24
25
26
# File 'lib/jupiter.rb', line 24

def vmusers
  @vmusers ||= configuration.vmusers
end