Skip to content

Commit c7642a5

Browse files
committed
(FM-8079) Remove duplicate .sync.yml deployment
1 parent 71a8e0b commit c7642a5

File tree

3 files changed

+20
-53
lines changed

3 files changed

+20
-53
lines changed

docs/hands-on-lab/03-creating-a-new-module.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -41,44 +41,6 @@ Open the new directory in your code editor:
4141
code -a hue_workshop
4242
```
4343

44-
Next, we'll active a few future defaults. In the `hue_workshop` directory, create a file called `.sync.yml` and paste the following:
45-
46-
```
47-
# .sync.yml
48-
---
49-
Gemfile:
50-
optional:
51-
':development':
52-
- gem: 'puppet-resource_api'
53-
- gem: 'faraday'
54-
- gem: 'rspec-json_expectations'
55-
spec/spec_helper.rb:
56-
mock_with: ':rspec'
57-
```
58-
59-
Run `pdk update` in the module's directory to deploy the changes in the module:
60-
61-
```
62-
david@davids:~/tmp/hue_workshop$ pdk update
63-
pdk (INFO): Updating david-hue_workshop using the default template, from 1.10.0 to 1.10.0
64-
65-
----------Files to be modified----------
66-
Gemfile
67-
spec/spec_helper.rb
68-
69-
----------------------------------------
70-
71-
You can find a report of differences in update_report.txt.
72-
73-
Do you want to continue and make these changes to your module? Yes
74-
75-
------------Update completed------------
76-
77-
2 files modified.
78-
79-
david@davids:~/tmp/hue_workshop$
80-
```
81-
8244

8345
## Next up
8446

docs/hands-on-lab/04-adding-a-new-transport.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,26 @@
22

33
Starting with PDK 1.12.0 there is the `pdk new transport` command, that you can use to create the base files for your new transport:
44

5-
Copy the [.sync.yml](./04-adding-a-new-transport/.sync.yml) into your new module, and run `pdk update --force` to enable a few future
6-
defaults that are required for this command:
5+
Next, we'll active a few future defaults. In the `hue_workshop` directory, create a file called `.sync.yml` and paste the following:
76

87
```
9-
david@davids:~/tmp/hue$ pdk update --force
10-
pdk (INFO): Updating david-hue using the default template, from master@c43fc26 to master@c43fc26
8+
# .sync.yml
9+
---
10+
Gemfile:
11+
optional:
12+
':development':
13+
- gem: 'puppet-resource_api'
14+
- gem: 'faraday'
15+
- gem: 'rspec-json_expectations'
16+
spec/spec_helper.rb:
17+
mock_with: ':rspec'
18+
```
19+
20+
Run `pdk update` in the module's directory to deploy the changes in the module:
21+
22+
```
23+
david@davids:~/tmp/hue_workshop$ pdk update --force
24+
pdk (INFO): Updating david-hue_workshop using the default template, from 1.10.0 to 1.10.0
1125
1226
----------Files to be modified----------
1327
Gemfile
@@ -17,13 +31,13 @@ spec/spec_helper.rb
1731
1832
You can find a report of differences in update_report.txt.
1933
20-
[✔] Resolving default Gemfile dependencies.
34+
Do you want to continue and make these changes to your module? Yes
2135
2236
------------Update completed------------
2337
2438
2 files modified.
2539
26-
david@davids:~/tmp/hue$
40+
david@davids:~/tmp/hue_workshop$
2741
```
2842

2943
Then, create the actual transport:

docs/hands-on-lab/04-adding-a-new-transport/.sync.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)