Class: Expando::ProjectTemplate
- Inherits:
-
Object
- Object
- Expando::ProjectTemplate
- Defined in:
- lib/expando/project_template.rb
Class Method Summary collapse
-
.init! ⇒ Object
Initialize a new Expando project in the current working directory.
Class Method Details
.init! ⇒ Object
Initialize a new Expando project in the current working directory.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/expando/project_template.rb', line 5 def init! mkdir 'intents' mkdir 'entities' config_file_contents = <<-CONFIG_FILE # API.AI credentials - add the credentials for your agent below :client_access_token: REPLACE_WITH_TOKEN :developer_access_token: REPLACE_WITH_TOKEN CONFIG_FILE mkfile '.expando.rc.yaml', config_file_contents circleci_config_file_contents = <<-CIRCLECI_CONFIG_FILE deployment: staging: branch: /.*/ commands: - bundle exec ./bin/expando update intents - bundle exec ./bin/expando update entities CIRCLECI_CONFIG_FILE mkfile 'circle.yaml', circleci_config_file_contents end |