View Source Ash.Resource.Igniter (ash v3.4.8)

Codemods for working with Ash.Resource modules

Summary

Functions

Adds the given code block to the resource's actions block

Adds the given code block to the resource's attributes block

Adds a bypass to the top of the resource's policies block

Adds a policy to the bottom of the resource's policies block

Gets the domain from the given resource module

List all resource modules found in the project

Functions

Link to this function

add_action(igniter, resource, action)

View Source

Adds the given code block to the resource's actions block

Link to this function

add_attribute(igniter, resource, attribute)

View Source

Adds the given code block to the resource's attributes block

Link to this function

add_bypass(igniter, resource, condition, body)

View Source

Adds a bypass to the top of the resource's policies block

Link to this function

add_policy(igniter, resource, condition, body)

View Source

Adds a policy to the bottom of the resource's policies block

Link to this function

domain(igniter, resource)

View Source
@spec domain(Igniter.t(), Ash.Resource.t()) ::
  {:ok, Igniter.t(), Ash.Domain.t()} | {:error, Igniter.t()}

Gets the domain from the given resource module

List all resource modules found in the project