Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Templates #20

Open
5 tasks
paulohtfs opened this issue Sep 6, 2016 · 0 comments
Open
5 tasks

Extract Templates #20

paulohtfs opened this issue Sep 6, 2016 · 0 comments

Comments

@paulohtfs
Copy link
Member

paulohtfs commented Sep 6, 2016

Reference to #12

The full list of attributes of Templates:

  • atomic_update TrueClass, FalseClass
  • backup FalseClass, Integer
  • cookbook String
  • force_unlink TrueClass, FalseClass
  • group String, Integer
  • helper(:method) Method { String }
  • helpers(module) Module
  • inherits TrueClass, FalseClass
  • local TrueClass, FalseClass
  • manage_symlink_source TrueClass, FalseClass, NilClass
  • mode String, Integer
  • notifies # runs other resource
  • owner String, Integer
  • path String # defaults to 'name' if not specified
  • provider Chef::Provider::File::Template
  • rights Hash
  • sensitive TrueClass, FalseClass
  • source String, Array
  • subscribes # runs other resource
  • variables Hash
  • verify String, Block
  • action Symbol # defaults to :create if not specified

The attribute path and source are necessary to complete the function.
The templates must be a dynamic file that has different content from environment to environment.
The recipe that Cupper is going to generate must contain the following attributes of Templates:

  • group String, Integer
  • mode String, Integer
  • owner String, Integer
  • variables Hash

As well, it must:

  • identify the content variant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant