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

Allow config to be set at initialization #52

Merged
merged 1 commit into from
Aug 24, 2018
Merged

Conversation

schneems
Copy link
Contributor

Previously you had to

app = Hatchet::Runner.new(“default”)
app.set_config({
  “FOO” => "http://localhost:3000",
  “BAR” => "10000"
})

Now you can:

app = Hatchet::Runner.new(“default”, config: {
  “FOO” => "http://localhost:3000",
  “BAR” => "10000"
})

Previously you had to 

```
app = Hatchet::Runner.new(“default”)
app.set_config({
  “FOO” => "http://localhost:3000",
  “BAR” => "10000"
})
```

Now you can:

```
app = Hatchet::Runner.new(“default”, config: {
  “FOO” => "http://localhost:3000",
  “BAR” => "10000"
})
```
@schneems schneems merged commit 01078d0 into master Aug 24, 2018
@edmorley edmorley deleted the schneems/init-config branch August 27, 2020 08:43
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.

1 participant