Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Replace bosh-template openstruct() method #10

Merged
merged 1 commit into from
Oct 14, 2015

Conversation

aarondl
Copy link
Contributor

@aarondl aarondl commented Oct 14, 2015

  • Create a new object that replaces openstruct that can fallback to
    consul lookups

- Create a new object that replaces openstruct that can fallback to
  consul lookups
@config_store = config_store
super(data)

Choose a reason for hiding this comment

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

You probably should add a comment on why 'super' has to go at the end of the method, as common practice is to call 'super' at the start of an initializer. Here it needs to appear after setting config_store.

@ericpromislow
Copy link

LGTM

ericpromislow pushed a commit that referenced this pull request Oct 14, 2015
Replace bosh-template openstruct() method
@ericpromislow ericpromislow merged commit 471cd16 into master Oct 14, 2015
@ericpromislow ericpromislow deleted the make-openstruct-lookup-consul branch October 14, 2015 00:50
expect(prop).to eq(5)
end

it 'should look up values in consul that don''t exist in properties' do
Copy link
Contributor

Choose a reason for hiding this comment

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

don''t

Choose a reason for hiding this comment

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

This is why I don''t mind object to using double-quotes in ruby

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.

None yet

3 participants