| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # Licensed to the StackStorm, Inc ('StackStorm') under one or more |
||
| 18 | class StoreOauthTokenAction(BaseGithubAction): |
||
| 19 | def run(self, user, token, enterprise=False): |
||
| 20 | |||
| 21 | if enterprise: |
||
| 22 | value_name = "token_enterprise_{}".format(user) |
||
| 23 | else: |
||
| 24 | value_name = "token_{}".format(user) |
||
| 25 | |||
| 26 | self.action_service.set_value( |
||
| 27 | name=value_name, |
||
| 28 | value=token) |
||
| 29 | |||
| 30 | return True |
||
| 31 |