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 = "# API.AI credentials - add the credentials for your agent below\n:client_access_token: REPLACE_WITH_TOKEN\n:developer_access_token: REPLACE_WITH_TOKEN\n CONFIG_FILE\n\n mkfile '.expando.rc.yaml', config_file_contents\n\n circleci_config_file_contents = <<-CIRCLECI_CONFIG_FILE\ndeployment:\n staging:\n branch: /.*/\n commands:\n- bundle exec ./bin/expando update intents\n- bundle exec ./bin/expando update entities\n CIRCLECI_CONFIG_FILE\n\n mkfile 'circle.yaml', circleci_config_file_contents\nend\n" |