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

Site api blackouts #150

Merged
merged 6 commits into from
Mar 27, 2015
Merged

Site api blackouts #150

merged 6 commits into from
Mar 27, 2015

Conversation

dmurray-r7
Copy link
Contributor

Gem changes for site and global blackouts


def self.from_hash(hash)
repeat_blackout_hash = hash[:repeat_blackout]
blackout = new(hash[:start_date], hash[:blackout_duration], hash[:timezone], repeat_blackout_hash[:type], repeat_blackout_hash[:interval])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [144/120]

@gschneider-r7 gschneider-r7 added this to the One Dot Oh milestone Mar 27, 2015
@gschneider-r7 gschneider-r7 reopened this Mar 27, 2015
webCred[:service] == Nexpose::WebCredentials::WebAppAuthType::HTTP_HEADER ?
Nexpose::WebCredentials::Headers.new(webCred[:name], webCred[:baseURL], webCred[:soft403Pattern], webCred[:id]).object_from_hash(nsc,webCred) :
Nexpose::WebCredentials::HTMLForms.new(webCred[:name], webCred[:baseURL], webCred[:loginURL], webCred[:soft403Pattern], webCred[:id]).object_from_hash(nsc,webCred))}
webCred[:service] == Nexpose::WebCredentials::WebAppAuthType::HTTP_HEADER ?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not a fan of this whole block here. Needs some better formatting for readability. I'll merge for now, but I want to take another look at this before we release 1.0.

gschneider-r7 added a commit that referenced this pull request Mar 27, 2015
@gschneider-r7 gschneider-r7 merged commit 4780e02 into staging/v1 Mar 27, 2015
@gschneider-r7 gschneider-r7 deleted the site-api-blackouts branch March 27, 2015 21:47
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

Successfully merging this pull request may close these issues.

3 participants