Module: FogExtensions::AWS::Server

Defined in:
lib/fog_extensions/aws/server.rb

Instance Method Summary collapse

Instance Method Details

#dnsObject


12
13
14
# File 'lib/fog_extensions/aws/server.rb', line 12

def dns
   dns_name || private_dns_name
end

#nameObject


8
9
10
# File 'lib/fog_extensions/aws/server.rb', line 8

def name
  to_s
end

#poweroffObject


16
17
18
# File 'lib/fog_extensions/aws/server.rb', line 16

def poweroff
  stop(true)
end

#resetObject


20
21
22
# File 'lib/fog_extensions/aws/server.rb', line 20

def reset
  poweroff &&  start
end

#to_sObject


4
5
6
# File 'lib/fog_extensions/aws/server.rb', line 4

def to_s
  tags["Name"] || identity
end