Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Add Ec2#ec2_roles method that takes multiple roles #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrageh
Copy link

@mrageh mrageh commented Aug 11, 2016

Defining multiple roles with the same options is quite repetitive at this moment
in time.

ec2_role :web, user: user_name
ec2_role :app, user: user_name
ec2_role :db, user: user_name

This commit adds Ec2#ec2_roles that takes an array of names & options and
calls Ec2#ec2_role for each name.

ec2_roles [:web, :db, :app], user: user_name

Defining multiple roles with the same options is quite repetitive at this moment
in time.

```
ec2_role :web, user: user_name
ec2_role :app, user: user_name
ec2_role :db, user: user_name
```

This commit adds `Ec2#ec2_roles` that takes an array of `names` & `options` and
calls `Ec2#ec2_role` for each `name`.

```
ec2_roles [:web, :db, :app], user: user_name
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant