Method: Runbook::Generators::Project#shared_lib_dir
- Defined in:
- lib/runbook/generators/project/project.rb
#shared_lib_dir ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/runbook/generators/project/project.rb', line 70 def shared_lib_dir msg = [ "Where should shared runbook code live?", "Use `lib/#{_name}` for runbook-only projects", "Use `lib/#{_name}/runbook` for projects used for non-runbook tasks", "Shared runbook code path:", ] if .has_key?("shared-lib-dir") @shared_lib_dir = ["shared-lib-dir"] else @shared_lib_dir = ask(msg.join("\n")) end end |