Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate Server attribute #1

Open
qubitrenegade opened this issue Aug 20, 2019 · 1 comment
Open

Validate Server attribute #1

qubitrenegade opened this issue Aug 20, 2019 · 1 comment
Assignees

Comments

@qubitrenegade
Copy link
Owner

def cbe_server
cbe['acme'][cbe['server']]
end

Only two valid values are prod and stage. (e.g: stag causes failure)

Validate this input or handle more flexible values.

@qubitrenegade qubitrenegade self-assigned this Aug 24, 2019
@qubitrenegade
Copy link
Owner Author

qubitrenegade commented Aug 31, 2019

    def cbe_server
     raise error %(your server: "#{cbe['server']}" not eq 'prod' or 'stage') unless cbe_servers
      cbe['acme'][cbe['server']]
    end

(oh, hmm maybe we need cbe_servers())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant