Class: AddTrustPathsTask

Inherits:
Rake::Task
  • Object
show all
Defined in:
lib/rake_helpers/tasks/trust.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#trust_nameObject

Returns the value of attribute trust_name.



4
5
6
# File 'lib/rake_helpers/tasks/trust.rb', line 4

def trust_name
  @trust_name
end

#trusted_pathsObject

Returns the value of attribute trusted_paths.



4
5
6
# File 'lib/rake_helpers/tasks/trust.rb', line 4

def trusted_paths
  @trusted_paths
end

Instance Method Details

#do_enable_trustObject



11
12
13
# File 'lib/rake_helpers/tasks/trust.rb', line 11

def do_enable_trust
  TrustManager.new.add_to_trust(trust_name, *trusted_paths)
end

#execute(*args) ⇒ Object



6
7
8
9
# File 'lib/rake_helpers/tasks/trust.rb', line 6

def execute(*args)
  super
  do_enable_trust
end