Method: PoolParty::Resources::RemoteFile#print_to_chef
- Defined in:
- lib/dependency_resolvers/chef/resources/remote_file.rb
#print_to_chef ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/dependency_resolvers/chef/resources/remote_file.rb', line 52 def print_to_chef str = <<-EOE remote_file "<%= name %>" do source <%= print_variable(source) %> action :<%= exists? ? :create : :delete %> backup <%= backup %> mode <%= print_variable(mode) %> owner <%= print_variable(owner) %> EOE str << " cookbook <%= print_variable(cookbook) %>\n" if cookbook str << " checksum <%= print_variable(checksum) %>\n" if checksum str << "end" end |