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

Make configuration variables editable. #5

Closed
wants to merge 1 commit into from

Conversation

gmacdougall
Copy link
Member

This moves the configuration variables to be class level attributes with
default values. This allows the values to be modified by an initializer
by the host application.

For example:

Oops::Tasks.additional_paths << 'app/additional_views'
Oops::Tasks.format = 'tar'

This moves the configuration variables to be class level attributes with
default values. This allows the values to be modified by an initializer
by the host application.

For example:

```
Oops::Tasks.additional_paths << 'app/additional_views'
Oops::Tasks.format = 'tar'
```
@gmacdougall
Copy link
Member Author

This may already be possible, but I couldn't figure out how to do it.

@gmacdougall
Copy link
Member Author

The way to do this is actually through:

# Rakefile
Oops::Tasks.new do |oops|
  oops.prerequisites = 'assets:precompile'
  oops.additional_paths = %w[vendor/something]
end

Closing in favour of that.

@gmacdougall gmacdougall closed this Jul 8, 2015
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