Class: Travis::Keychain
- Inherits:
-
Object
- Object
- Travis::Keychain
- Includes:
- Deploy::Helper
- Defined in:
- lib/travis/keychain.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(app, shell, dir = '../travis-keychain') ⇒ Keychain
constructor
A new instance of Keychain.
Constructor Details
#initialize(app, shell, dir = '../travis-keychain') ⇒ Keychain
Returns a new instance of Keychain.
7 8 9 10 11 |
# File 'lib/travis/keychain.rb', line 7 def initialize(app, shell, dir = '../travis-keychain') @app = app @shell = shell @dir = File.(dir) end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
5 6 7 |
# File 'lib/travis/keychain.rb', line 5 def app @app end |
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
5 6 7 |
# File 'lib/travis/keychain.rb', line 5 def dir @dir end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
5 6 7 |
# File 'lib/travis/keychain.rb', line 5 def shell @shell end |
Instance Method Details
#fetch ⇒ Object
13 14 15 16 |
# File 'lib/travis/keychain.rb', line 13 def fetch chdir { pull } read end |