Module: Secretive

Defined in:
lib/secretive.rb,
lib/secretive/loader.rb,
lib/secretive/railtie.rb,
lib/secretive/version.rb

Defined Under Namespace

Classes: Loader, Railtie

Constant Summary collapse

VERSION =
"0.0.10"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Secretive)

    the object that the method was called on



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

.fileObject



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