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

Change lib/tag-resources.js:tagResources to be a class called ResourceTagger #6

Open
jhford opened this issue Jun 22, 2017 · 0 comments

Comments

@jhford
Copy link
Contributor

jhford commented Jun 22, 2017

Since this function has a lot of context which is annoying to have to pass around for each invocation, let's instead have a class called ResourceTagger which we can pass into the constructors of other classes.

This class should have the skeleton:

class ResourceTagger {
  constructor({runaws, ec2, keyPrefix}) { }

  tag({region, workerType, ids}) { }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant