Skip to content

Commit

Permalink
Advanced 5 - Updated git to my_git
Browse files Browse the repository at this point in the history
Signed-off-by: Amndeep Singh Mann <[email protected]>
  • Loading branch information
Amndeep7 authored Dec 12, 2024
1 parent cdbe5e5 commit fc69d12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/courses/advanced/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ inspec exec my_git
```bash
Redirecting to cinc-auditor...

[2023-02-22T03:21:41+00:00] ERROR: Failed to load profile git: Failed to load source for controls/example.rb: undefined method `git' for #<Inspec::ControlEvalContext:0x000000000540af38>
[2023-02-22T03:21:41+00:00] ERROR: Failed to load profile my_git: Failed to load source for controls/example.rb: undefined method `git' for #<Inspec::ControlEvalContext:0x000000000540af38>
Profile: InSpec Profile (my_git)
Version: 0.1.0
Expand Down Expand Up @@ -197,7 +197,7 @@ inspec exec my_git
@tab Output

```bash
[2023-02-22T03:25:57+00:00] ERROR: Failed to load profile git: Failed to load source for controls/example.rb: wrong number of arguments (given 1, expected 0)
[2023-02-22T03:25:57+00:00] ERROR: Failed to load profile my_git: Failed to load source for controls/example.rb: wrong number of arguments (given 1, expected 0)
Profile: InSpec Profile (my_git)
Version: 0.1.0
Expand Down Expand Up @@ -473,7 +473,7 @@ Invoking the InSpec shell with `inspec shell` will give you access to all the co

@tab Command
```sh
inspec shell --depends git
inspec shell --depends my_git
```
@tab Output
```sh
Expand Down Expand Up @@ -506,4 +506,4 @@ inspec shell --depends my_git/libraries

If you edit the resource class file, you'll need to exit the shell and re-launch it for the updates to be available.

From here, we can examine our custom resource in a sandbox in the same way that we do with core resources.
From here, we can examine our custom resource in a sandbox in the same way that we do with core resources.

0 comments on commit fc69d12

Please sign in to comment.