shopify-cli 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +2 -2
  3. data/.github/CONTRIBUTING.md +9 -1
  4. data/.github/PULL_REQUEST_TEMPLATE.md +2 -2
  5. data/.github/workflows/release.yml +0 -1
  6. data/.github/workflows/triage.yml +22 -0
  7. data/.rubocop.yml +21 -7
  8. data/.rubocop_todo.yml +2 -15
  9. data/.travis.yml +0 -1
  10. data/CHANGELOG.md +5 -0
  11. data/Gemfile +1 -0
  12. data/Gemfile.lock +9 -6
  13. data/RELEASING.md +5 -13
  14. data/lib/project_types/extension/cli.rb +2 -1
  15. data/lib/project_types/node/cli.rb +4 -1
  16. data/lib/project_types/node/commands/connect.rb +15 -0
  17. data/lib/project_types/node/commands/create.rb +6 -7
  18. data/lib/project_types/node/messages/messages.rb +7 -6
  19. data/lib/project_types/rails/cli.rb +4 -1
  20. data/lib/project_types/rails/commands/connect.rb +15 -0
  21. data/lib/project_types/rails/commands/create.rb +6 -7
  22. data/lib/project_types/rails/messages/messages.rb +7 -4
  23. data/lib/project_types/script/cli.rb +2 -1
  24. data/lib/project_types/script/commands/enable.rb +12 -4
  25. data/lib/project_types/script/config/extension_points.yml +9 -8
  26. data/lib/project_types/script/errors.rb +4 -0
  27. data/lib/project_types/script/layers/application/build_script.rb +12 -16
  28. data/lib/project_types/script/layers/domain/errors.rb +3 -0
  29. data/lib/project_types/script/layers/domain/extension_point.rb +0 -1
  30. data/lib/project_types/script/layers/infrastructure/assemblyscript_project_creator.rb +13 -48
  31. data/lib/project_types/script/layers/infrastructure/assemblyscript_task_runner.rb +28 -7
  32. data/lib/project_types/script/layers/infrastructure/errors.rb +16 -0
  33. data/lib/project_types/script/layers/infrastructure/script_repository.rb +0 -12
  34. data/lib/project_types/script/layers/infrastructure/script_service.rb +2 -0
  35. data/lib/project_types/script/messages/messages.rb +22 -2
  36. data/lib/project_types/script/ui/error_handler.rb +25 -0
  37. data/lib/shopify-cli/api.rb +3 -1
  38. data/lib/shopify-cli/commands/config.rb +24 -0
  39. data/lib/shopify-cli/commands/connect.rb +32 -15
  40. data/lib/shopify-cli/core/monorail.rb +2 -1
  41. data/lib/shopify-cli/js_deps.rb +1 -1
  42. data/lib/shopify-cli/messages/messages.rb +22 -4
  43. data/lib/shopify-cli/partners_api.rb +17 -1
  44. data/lib/shopify-cli/process_supervision.rb +1 -1
  45. data/lib/shopify-cli/project.rb +12 -8
  46. data/lib/shopify-cli/project_type.rb +17 -1
  47. data/lib/shopify-cli/shopifolk.rb +32 -13
  48. data/lib/shopify-cli/task.rb +8 -0
  49. data/lib/shopify-cli/tasks/create_api_client.rb +9 -0
  50. data/lib/shopify-cli/tasks/ensure_env.rb +3 -0
  51. data/lib/shopify-cli/tasks/select_org_and_shop.rb +3 -0
  52. data/lib/shopify-cli/version.rb +1 -1
  53. metadata +5 -3
  54. data/lib/project_types/script/layers/infrastructure/assemblyscript_tsconfig.rb +0 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b440a68e264b97888e3cb181eea5e2465522c3d67338851e08775cc743416a5
4
- data.tar.gz: a6f2acacf046ab9c6bd174d7bd077a0ea87312f844db05de015c9cacf5d972bf
3
+ metadata.gz: 6d907a49558ca8dfb5998667698b5bf262d850a55951ac2af30c178f141d9063
4
+ data.tar.gz: 833124c900634e59426bef89dd7fbf35948d19b73e55ecb96becfb6307b3cc3a
5
5
  SHA512:
6
- metadata.gz: dc49412e3aa3f7bc5dde8fa5943d2d52ae09138e92de3fcbd949353430a2ea5275dd157951dcf81770cdb36ccb5c023a570ddea3eb7756a357709360d51bb3b4
7
- data.tar.gz: 648a9df9b5647e869d92cc23241628fbe336efeeb8c9c6ade691d55b14cb075c419e87a2f97c5eddf851e99bba1da5e595cfcd13d2d78c6c5c0cafbaeaa85dc1
6
+ metadata.gz: 4670c00c70ae907f1d5eea958ba512ac61e2579566dabf4bb09345925d6da2cd882e5c4d0e9bededd92fd779f85326d4b4cbc66d3c268ee816aa0d23330bc55c
7
+ data.tar.gz: 33a780da492b11846f89d84b74da119d707236846e4b9617ccb1541cde9be83b0f33fcf302d92b3aaa58c3634ed9004d3d2b7673f0a2a916b33ed2336b2835f9
@@ -1,4 +1,4 @@
1
1
  * @shopify/platform-dev-tools-education
2
2
 
3
- /lib/project_types/script/ @shopify/scripts
4
- /test/project_types/script/ @shopify/scripts
3
+ /lib/project_types/script/ @shopify/scripts-experience
4
+ /test/project_types/script/ @shopify/scripts-experience
@@ -19,6 +19,14 @@ When contributing to the Shopify App CLI, there are a set of [design guidelines]
19
19
 
20
20
  We track all of our issues in GitHub and [bugs](https://github.com/Shopify/shopify-app-cli/labels/Bug) are labeled accordingly. If you are planning to work on an issue, avoid ones which already have an assignee, where someone has commented within the last two weeks they are working on it, or the issue is labeled with [fix in progress](https://github.com/Shopify/shopify-app-cli/labels/fix%20in%20progress). We will do our best to communicate when an issue is being worked on internally.
21
21
 
22
+ ### Running against a local environment
23
+
24
+ This section only applies to Shopify staff:
25
+
26
+ To run against a local Partners or Identity instance, you can use:
27
+
28
+ `SHOPIFY_APP_CLI_LOCAL_PARTNERS=1 shopify`
29
+
22
30
  ### Reporting new issues
23
31
 
24
32
  To reduce duplicates, look through open issues before filing one. When [opening an issue](https://github.com/Shopify/shopify-app-cli/issues/new?template=ISSUE.md), complete as much of the template as possible.
@@ -48,4 +56,4 @@ Each contributor is required to [sign a CLA](https://cla.shopify.com/). This pro
48
56
 
49
57
  If you are changing the CLI version, please make sure to update all the places that use it:
50
58
  * ShopifyCLI::VERSION
51
- * Debian package version under `packaging/debian`
59
+ * Debian package version under `packaging/debian`
@@ -3,7 +3,7 @@
3
3
  - Prefix it with [Feature] (if applicable)
4
4
  - Start with a verb, for example: Add, Delete, Improve, Fix…
5
5
  - Give as much context as necessary and as little as possible
6
- - Prefix it with [WIP] while it’s a work in progress
6
+ - Use a draft PR while it’s a work in progress
7
7
  -->
8
8
 
9
9
  ### WHY are these changes introduced?
@@ -27,4 +27,4 @@ Fixes #0000 <!-- link to issue if one exists -->
27
27
  `* [#PR](PR URL): Message`. You should consider adding your PR
28
28
  and then making the CHANGELOG update once you know the PR number.
29
29
  -->
30
- - [ ] I've added a CHANGELOG entry for this PR
30
+ - [ ] I've added a CHANGELOG entry for this PR (if the change is public-facing)
@@ -46,7 +46,6 @@ jobs:
46
46
  tap: shopify/shopify
47
47
  formula: shopify-cli
48
48
  tag: ${{ steps.folder.outputs.name }}
49
- message: "Version bump, created by github actions"
50
49
 
51
50
  - name: Create Release # https://hub.github.com/hub-release.1.html
52
51
  env:
@@ -0,0 +1,22 @@
1
+ name: Triage new issues to DTE oncall project board ("Needs triage" column)
2
+
3
+ on:
4
+ issues:
5
+ types: [opened, reopened]
6
+
7
+ jobs:
8
+ triage-issue:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Extract issue id
12
+ id: issue
13
+ run: echo "::set-output name=id::$(jq -r '.issue.id' < "$GITHUB_EVENT_PATH")"
14
+
15
+ - name: Create card
16
+ env:
17
+ TOKEN: ${{ secrets.ACTIONS_TOKEN }}
18
+ run: |
19
+ curl -s -X POST -u "$GITHUB_ACTOR:$TOKEN" --retry 3 \
20
+ -H 'Accept: application/vnd.github.inertia-preview+json' \
21
+ -d "{\"content_type\": \"Issue\", \"content_id\": ${{ steps.issue.outputs.id }}}" \
22
+ "https://api.github.com/projects/columns/10507989/cards"
@@ -51,6 +51,9 @@ Layout/EmptyLines:
51
51
  # Need extra line so comment at top isnt registered to the Dev namespace
52
52
  - 'lib/dev/helpers/chruby_reset.rb'
53
53
 
54
+ Layout/EmptyLineBetweenDefs:
55
+ AllowAdjacentOneLineDefs: true
56
+
54
57
  # Changing this could effect the way the content is rendered.
55
58
  Layout/HeredocIndentation:
56
59
  Exclude:
@@ -74,13 +77,24 @@ Style/RegexpLiteral:
74
77
 
75
78
  Style/MethodCallWithArgsParentheses:
76
79
  IgnoredMethods:
80
+ - assert
81
+ - assert_equal
82
+ - assert_includes
83
+ - assert_nil
84
+ - assert_raises
85
+ - assert_requested # from Webmock
86
+ - puts
87
+ - raise
88
+ - refute
89
+ - refute_empty
90
+ - refute_nil
77
91
  - require
78
- - require_relative
79
92
  - require_dependency
93
+ - require_relative
80
94
  - yield
81
- - raise
82
- - puts
83
- - assert_equal
84
- - assert
85
- - refute
86
- - assert_requested # from Webmock
95
+
96
+ Layout/TrailingWhitespace:
97
+ Exclude:
98
+ - 'ext/shopify-cli/extconf.rb' # unsure if safe to remove
99
+ - 'lib/project_types/extension/messages/messages.rb' # unsure if safe to remove
100
+ - 'test/project_types/extension/extension_test_helpers/stubs/argo_script.rb' # unsure if save to remove
@@ -1,24 +1,11 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-10-24 22:13:10 UTC using RuboCop version 0.93.1.
3
+ # on 2020-12-01 16:33:09 UTC using RuboCop version 1.4.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 29
9
+ # Offense count: 30
10
10
  Minitest/MultipleAssertions:
11
11
  Max: 9
12
-
13
- # Offense count: 74
14
- # Cop supports --auto-correct.
15
- # Configuration parameters: IgnoreMacros, IgnoredMethods, IgnoredPatterns, IncludedMacros, AllowParenthesesInMultilineCall, AllowParenthesesInChaining, AllowParenthesesInCamelCaseMethod, EnforcedStyle.
16
- # SupportedStyles: require_parentheses, omit_parentheses
17
- Style/MethodCallWithArgsParentheses:
18
- Enabled: false
19
-
20
- # Offense count: 1
21
- # Cop supports --auto-correct.
22
- Style/RedundantBegin:
23
- Exclude:
24
- - 'test/test_helper.rb'
@@ -11,4 +11,3 @@ install:
11
11
  - bundle install
12
12
  script:
13
13
  - bundle exec rake
14
- - if [ -f "~/.config/shopify/config" ]; then echo "Found a config file in home directory. This means the tests would modify a developer's local config. Consider using FakeFS"; exit 1; fi
@@ -1,6 +1,11 @@
1
1
  Unreleased
2
2
  ------
3
3
 
4
+ Version 1.5.0
5
+ -----
6
+ * [#965](https://github.com/Shopify/shopify-app-cli/pull/965): Remove --no-optional when using npm to create new project
7
+ * [#958](https://github.com/Shopify/shopify-app-cli/pull/958): Split `connect` command into project-specific functionality
8
+
4
9
  Version 1.4.1
5
10
  ------
6
11
  * [#917](https://github.com/Shopify/shopify-app-cli/pull/917): Ensure analytics for create action includes the same fields as other commands
data/Gemfile CHANGED
@@ -16,6 +16,7 @@ group :test do
16
16
  gem 'mocha', require: false
17
17
  gem 'minitest', '>= 5.0.0', require: false
18
18
  gem 'minitest-reporters', require: false
19
+ gem 'minitest-fail-fast', require: false
19
20
  gem 'fakefs', '>= 1.0', require: false
20
21
  gem 'webmock', require: false
21
22
  gem 'timecop', require: false
@@ -13,13 +13,15 @@ GEM
13
13
  hashdiff (1.0.1)
14
14
  method_source (1.0.0)
15
15
  minitest (5.14.2)
16
+ minitest-fail-fast (0.1.0)
17
+ minitest (~> 5)
16
18
  minitest-reporters (1.4.2)
17
19
  ansi
18
20
  builder
19
21
  minitest (>= 5.0)
20
22
  ruby-progressbar
21
23
  mocha (1.11.2)
22
- parallel (1.19.2)
24
+ parallel (1.20.1)
23
25
  parser (2.7.2.0)
24
26
  ast (~> 2.4.1)
25
27
  pry (0.13.1)
@@ -33,21 +35,21 @@ GEM
33
35
  rake (13.0.1)
34
36
  regexp_parser (1.8.2)
35
37
  rexml (3.2.4)
36
- rubocop (0.93.1)
38
+ rubocop (1.4.1)
37
39
  parallel (~> 1.10)
38
40
  parser (>= 2.7.1.5)
39
41
  rainbow (>= 2.2.2, < 4.0)
40
42
  regexp_parser (>= 1.8)
41
43
  rexml
42
- rubocop-ast (>= 0.6.0)
44
+ rubocop-ast (>= 1.1.1)
43
45
  ruby-progressbar (~> 1.7)
44
46
  unicode-display_width (>= 1.4.0, < 2.0)
45
- rubocop-ast (1.1.0)
47
+ rubocop-ast (1.1.1)
46
48
  parser (>= 2.7.1.5)
47
49
  rubocop-minitest (0.10.1)
48
50
  rubocop (>= 0.87)
49
- rubocop-shopify (1.0.6)
50
- rubocop (>= 0.92, < 0.94)
51
+ rubocop-shopify (1.0.7)
52
+ rubocop (~> 1.4)
51
53
  ruby-progressbar (1.10.1)
52
54
  timecop (0.9.2)
53
55
  unicode-display_width (1.7.0)
@@ -63,6 +65,7 @@ DEPENDENCIES
63
65
  byebug
64
66
  fakefs (>= 1.0)
65
67
  minitest (>= 5.0.0)
68
+ minitest-fail-fast
66
69
  minitest-reporters
67
70
  mocha
68
71
  pry-byebug
@@ -31,19 +31,11 @@
31
31
 
32
32
  1. Deploy using Shipit
33
33
 
34
- 1. Update your `master` branch to the latest version
35
- ```
36
- $ git checkout master
37
- $ git pull
38
- ```
34
+ 1. Check the "Actions" tab to see if the _Create Release_ workflow is successful.
35
+ The workflow will automatically create a [release](https://github.com/Shopify/shopify-app-cli/releases) with the latest tag and `.deb`, `.rpm` assets attached.
39
36
 
40
- 1. On local machine and _AFTER_ gem has been published to https://rubygems.org, run
41
- ```
42
- $ rake package
43
- ```
44
- This will generate the `.deb`, `.rpm` and brew formula files, which will be located in `packaging/builds/X.Y.Z/`.
37
+ 2. Check the `Shopify/homebrew-shopify` repository for new PR `shopify-cli {version}`
38
+ * rename PR to `Packaging for release of v{version} of shopify-cli`
39
+ * when PR is approved, merge into main branch
45
40
 
46
- 1. Check the "Actions" tab to see if the _Create Release_ workflow is successful.
47
- The workflow will automatically create a release with the latest tag and the `.deb`, `.rpm` assets attached.
48
41
 
49
- 1. Check the `Shopify/homebrew-shopify` repository for new branch `bump-shopify-cli-{version}` and create PR.
@@ -3,7 +3,8 @@
3
3
  module Extension
4
4
  class Project < ShopifyCli::ProjectType
5
5
  hidden_feature
6
- creator 'App Extension', 'Extension::Commands::Create'
6
+ title('App Extension')
7
+ creator('Extension::Commands::Create')
7
8
 
8
9
  register_command('Extension::Commands::Build', "build")
9
10
  register_command('Extension::Commands::Register', "register")
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
  module Node
3
3
  class Project < ShopifyCli::ProjectType
4
- creator 'Node.js App', 'Node::Commands::Create'
4
+ title('Node.js App')
5
+ creator('Node::Commands::Create')
6
+ connector('Node::Commands::Connect')
5
7
 
6
8
  register_command('Node::Commands::Deploy', "deploy")
7
9
  register_command('Node::Commands::Generate', "generate")
@@ -17,6 +19,7 @@ module Node
17
19
 
18
20
  # define/autoload project specific Commands
19
21
  module Commands
22
+ autoload :Connect, Project.project_filepath('commands/connect')
20
23
  autoload :Create, Project.project_filepath('commands/create')
21
24
  autoload :Deploy, Project.project_filepath('commands/deploy')
22
25
  autoload :Generate, Project.project_filepath('commands/generate')
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+ module Node
3
+ module Commands
4
+ class Connect < ShopifyCli::SubCommand
5
+ def call(*)
6
+ if ShopifyCli::Project.has_current? && ShopifyCli::Project.current.env
7
+ @ctx.puts(@ctx.message('node.connect.production_warning'))
8
+ end
9
+
10
+ app = ShopifyCli::Commands::Connect.new.default_connect('node')
11
+ @ctx.done(@ctx.message('node.connect.connected', app))
12
+ end
13
+ end
14
+ end
15
+ end
@@ -40,11 +40,11 @@ module Node
40
40
  scopes: 'write_products,write_customers,write_draft_orders',
41
41
  ).write(@ctx)
42
42
 
43
- partners_url = "#{partners_endpoint}/#{form.organization_id}/apps/#{api_client['id']}"
43
+ partners_url = ShopifyCli::PartnersAPI.partners_url_for(form.organization_id, api_client['id'], local_debug?)
44
44
 
45
- @ctx.puts(@ctx.message('node.create.info.created', form.title, partners_url))
46
- @ctx.puts(@ctx.message('node.create.info.serve', form.name, ShopifyCli::TOOL_NAME))
47
- @ctx.puts(@ctx.message('node.create.info.install', partners_url, form.title))
45
+ @ctx.puts(@ctx.message('apps.create.info.created', form.title, partners_url))
46
+ @ctx.puts(@ctx.message('apps.create.info.serve', form.name, ShopifyCli::TOOL_NAME))
47
+ @ctx.puts(@ctx.message('apps.create.info.install', partners_url, form.title))
48
48
  end
49
49
 
50
50
  def self.help
@@ -113,9 +113,8 @@ module Node
113
113
  end
114
114
  end
115
115
 
116
- def partners_endpoint
117
- return 'https://partners.myshopify.io' if @ctx.getenv(ShopifyCli::PartnersAPI::LOCAL_DEBUG)
118
- 'https://partners.shopify.com'
116
+ def local_debug?
117
+ @ctx.getenv(ShopifyCli::PartnersAPI::LOCAL_DEBUG)
119
118
  end
120
119
  end
121
120
  end
@@ -8,6 +8,13 @@ module Node
8
8
  generic: "Error",
9
9
  },
10
10
 
11
+ connect: {
12
+ connected: "Project now connected to {{green:%s}}",
13
+ production_warning: <<~MESSAGE,
14
+ {{yellow:! Warning: if you have connected to an {{bold:app in production}}, running {{command:serve}} may update the app URL and cause an outage.
15
+ MESSAGE
16
+ },
17
+
11
18
  create: {
12
19
  help: <<~HELP,
13
20
  {{command:%s create node}}: Creates an embedded nodejs app.
@@ -26,12 +33,6 @@ module Node
26
33
  npm_version_failure: "Failed to get the current npm version. Please make sure it is installed as per " \
27
34
  "the instructions at https://www.npmjs.com/get-npm.",
28
35
  },
29
- info: {
30
- created: "{{v}} {{green:%s}} was created in your Partner Dashboard {{underline:%s}}",
31
- serve: "{{*}} Change directories to your new project folder {{green:%s}} and run {{command:%s serve}} " \
32
- "to start a local server",
33
- install: "{{*}} Then, visit {{underline:%s/test}} to install {{green:%s}} on your Dev Store",
34
- },
35
36
  node_version: "node %s",
36
37
  npm_version: "npm %s",
37
38
  },
@@ -1,7 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
  module Rails
3
3
  class Project < ShopifyCli::ProjectType
4
- creator 'Ruby on Rails App', 'Rails::Commands::Create'
4
+ title('Ruby on Rails App')
5
+ creator('Rails::Commands::Create')
6
+ connector('Rails::Commands::Connect')
5
7
 
6
8
  register_command('Rails::Commands::Deploy', "deploy")
7
9
  register_command('Rails::Commands::Generate', "generate")
@@ -17,6 +19,7 @@ module Rails
17
19
 
18
20
  # define/autoload project specific Commands
19
21
  module Commands
22
+ autoload :Connect, Project.project_filepath('commands/connect')
20
23
  autoload :Create, Project.project_filepath('commands/create')
21
24
  autoload :Deploy, Project.project_filepath('commands/deploy')
22
25
  autoload :Generate, Project.project_filepath('commands/generate')
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+ module Rails
3
+ module Commands
4
+ class Connect < ShopifyCli::SubCommand
5
+ def call(*)
6
+ if ShopifyCli::Project.has_current? && ShopifyCli::Project.current.env
7
+ @ctx.puts(@ctx.message('rails.connect.production_warning'))
8
+ end
9
+
10
+ app = ShopifyCli::Commands::Connect.new.default_connect('rails')
11
+ @ctx.done(@ctx.message('rails.connect.connected', app))
12
+ end
13
+ end
14
+ end
15
+ end
@@ -55,11 +55,11 @@ module Rails
55
55
  scopes: 'write_products,write_customers,write_draft_orders',
56
56
  ).write(@ctx)
57
57
 
58
- partners_url = "#{partners_endpoint}/#{form.organization_id}/apps/#{api_client['id']}"
58
+ partners_url = ShopifyCli::PartnersAPI.partners_url_for(form.organization_id, api_client['id'], local_debug?)
59
59
 
60
- @ctx.puts(@ctx.message('rails.create.info.created', form.title, partners_url))
61
- @ctx.puts(@ctx.message('rails.create.info.serve', form.name, ShopifyCli::TOOL_NAME))
62
- @ctx.puts(@ctx.message('rails.create.info.install', partners_url, form.title))
60
+ @ctx.puts(@ctx.message('apps.create.info.created', form.title, partners_url))
61
+ @ctx.puts(@ctx.message('apps.create.info.serve', form.name, ShopifyCli::TOOL_NAME))
62
+ @ctx.puts(@ctx.message('apps.create.info.install', partners_url, form.title))
63
63
  end
64
64
 
65
65
  def self.help
@@ -173,9 +173,8 @@ module Rails
173
173
  Gem.install(@ctx, name, version)
174
174
  end
175
175
 
176
- def partners_endpoint
177
- return 'https://partners.myshopify.io' if @ctx.getenv(ShopifyCli::PartnersAPI::LOCAL_DEBUG)
178
- 'https://partners.shopify.com'
176
+ def local_debug?
177
+ @ctx.getenv(ShopifyCli::PartnersAPI::LOCAL_DEBUG)
179
178
  end
180
179
  end
181
180
  end
@@ -17,6 +17,13 @@ module Rails
17
17
  setting_gem_path: "GEM_PATH being set to %s",
18
18
  },
19
19
 
20
+ connect: {
21
+ connected: "Project now connected to {{green:%s}}",
22
+ production_warning: <<~MESSAGE,
23
+ {{yellow:! Warning: if you have connected to an {{bold:app in production}}, running {{command:serve}} may update the app URL and cause an outage.
24
+ MESSAGE
25
+ },
26
+
20
27
  create: {
21
28
  help: <<~HELP,
22
29
  {{command:%s create rails}}: Creates a ruby on rails app.
@@ -48,10 +55,6 @@ module Rails
48
55
  },
49
56
 
50
57
  info: {
51
- created: "{{v}} {{green:%s}} was created in your Partner Dashboard {{underline:%s}}",
52
- serve: "{{*}} Change directories to your new project folder {{green:%s}} and run {{command:%s serve}} " \
53
- "to start a local server",
54
- install: "{{*}} Then, visit {{underline:%s/test}} to install {{green:%s}} on your Dev Store",
55
58
  open_new_shell: "{{*}} {{yellow:After installing %s, please open a new Command Prompt or PowerShell " \
56
59
  "window to continue.}}",
57
60
  },