Class: Conjur::Provisioner::AWS::DeleteRole

Inherits:
Object
  • Object
show all
Includes:
BucketHelper, RoleHelper
Defined in:
lib/conjur/provisioner/aws.rb

Instance Attribute Summary collapse

Attributes included from BucketHelper

#bucket_name

Instance Method Summary collapse

Instance Attribute Details

#host_factoryObject

Returns the value of attribute host_factory.



39
40
41
# File 'lib/conjur/provisioner/aws.rb', line 39

def host_factory
  @host_factory
end

Instance Method Details

#performObject



55
56
57
58
# File 'lib/conjur/provisioner/aws.rb', line 55

def perform
  delete_role
  delete_s3_token_file
end

#role_nameObject



41
42
43
# File 'lib/conjur/provisioner/aws.rb', line 41

def role_name
  host_factory.id.parameterize
end

#token_file_nameObject



45
46
47
# File 'lib/conjur/provisioner/aws.rb', line 45

def token_file_name
  host_factory.id.parameterize
end

#validateObject



49
50
51
52
53
# File 'lib/conjur/provisioner/aws.rb', line 49

def validate
  super
  
  raise "host_factory is missing" unless host_factory
end