Module: Secretive
- Defined in:
- lib/secretive.rb,
lib/secretive/loader.rb,
lib/secretive/railtie.rb,
lib/secretive/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.8"
Class Method Summary collapse
- .configure {|_self| ... } ⇒ Object
- .environmentalize!(scope = nil) ⇒ Object
- .file ⇒ Object
- .file=(file) ⇒ Object
- .for_heroku(scope = nil) ⇒ Object
Class Method Details
.configure {|_self| ... } ⇒ Object
16 17 18 |
# File 'lib/secretive.rb', line 16 def configure yield self end |
.environmentalize!(scope = nil) ⇒ Object
20 21 22 |
# File 'lib/secretive.rb', line 20 def environmentalize!(scope=nil) Loader.environmentalize!(self.file, scope) end |
.file ⇒ Object
8 9 10 |
# File 'lib/secretive.rb', line 8 def file @@file ||= 'config/secrets.yml' end |
.file=(file) ⇒ Object
12 13 14 |
# File 'lib/secretive.rb', line 12 def file=(file) @@file = file end |
.for_heroku(scope = nil) ⇒ Object
24 25 26 |
# File 'lib/secretive.rb', line 24 def for_heroku(scope=nil) Loader.for_heroku(self.file, scope) end |