Class: Puppi::GenerateSampleData
- Inherits:
-
Object
- Object
- Puppi::GenerateSampleData
- Defined in:
- lib/puppi/generate_sample_data.rb
Instance Method Summary collapse
- #datafiles ⇒ Object
- #helpers ⇒ Object
-
#initialize ⇒ GenerateSampleData
constructor
A new instance of GenerateSampleData.
- #notifications ⇒ Object
Constructor Details
#initialize ⇒ GenerateSampleData
Returns a new instance of GenerateSampleData.
3 4 |
# File 'lib/puppi/generate_sample_data.rb', line 3 def initialize end |
Instance Method Details
#datafiles ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/puppi/generate_sample_data.rb', line 21 def datafiles write_file '/data/standard_openssh.yml', '--- name: openssh version: 1.0' write_file '/data/standard_hostname.yml', '--- name: hostname version: 0.1' end |
#helpers ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/puppi/generate_sample_data.rb', line 6 def helpers write_file '/helpers/standard.yml', '--- :info: - :command: echo "+ %{name} +" :description: "info module name for tests" :check: - :command: echo "| %{name} |" :description: "check module name for tests" - :command: echo "| %{version} |" :description: "check module version"' end |
#notifications ⇒ Object
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/puppi/generate_sample_data.rb', line 30 def notifications write_file '/notifications/mail_user1.yml', '--- from: [email protected] to: [email protected] subject: \'[puppi] notification\'' write_file '/notifications/mail_user2.yml', '--- from: [email protected] to: [email protected] subject: \'[puppi] notification\'' end |