Class: Tetra::Bashrc
- Inherits:
-
Object
- Object
- Tetra::Bashrc
- Includes:
- Generatable
- Defined in:
- lib/tetra/facades/bash.rb
Overview
encapsulates variables in bashrc template
Instance Attribute Summary collapse
-
#ant_commandline ⇒ Object
readonly
Returns the value of attribute ant_commandline.
-
#ant_in_kit ⇒ Object
readonly
Returns the value of attribute ant_in_kit.
-
#history_file ⇒ Object
readonly
Returns the value of attribute history_file.
-
#mvn_commandline ⇒ Object
readonly
Returns the value of attribute mvn_commandline.
-
#mvn_in_kit ⇒ Object
readonly
Returns the value of attribute mvn_in_kit.
Instance Method Summary collapse
-
#initialize(history_file, ant_in_kit, ant_commandline, mvn_in_kit, mvn_commandline) ⇒ Bashrc
constructor
A new instance of Bashrc.
- #to_s ⇒ Object
Methods included from Generatable
Constructor Details
#initialize(history_file, ant_in_kit, ant_commandline, mvn_in_kit, mvn_commandline) ⇒ Bashrc
Returns a new instance of Bashrc.
60 61 62 63 64 65 66 |
# File 'lib/tetra/facades/bash.rb', line 60 def initialize(history_file, ant_in_kit, ant_commandline, mvn_in_kit, mvn_commandline) @history_file = history_file @ant_in_kit = ant_in_kit @ant_commandline = ant_commandline @mvn_in_kit = mvn_in_kit @mvn_commandline = mvn_commandline end |
Instance Attribute Details
#ant_commandline ⇒ Object (readonly)
Returns the value of attribute ant_commandline.
56 57 58 |
# File 'lib/tetra/facades/bash.rb', line 56 def ant_commandline @ant_commandline end |
#ant_in_kit ⇒ Object (readonly)
Returns the value of attribute ant_in_kit.
55 56 57 |
# File 'lib/tetra/facades/bash.rb', line 55 def ant_in_kit @ant_in_kit end |
#history_file ⇒ Object (readonly)
Returns the value of attribute history_file.
54 55 56 |
# File 'lib/tetra/facades/bash.rb', line 54 def history_file @history_file end |
#mvn_commandline ⇒ Object (readonly)
Returns the value of attribute mvn_commandline.
58 59 60 |
# File 'lib/tetra/facades/bash.rb', line 58 def mvn_commandline @mvn_commandline end |
#mvn_in_kit ⇒ Object (readonly)
Returns the value of attribute mvn_in_kit.
57 58 59 |
# File 'lib/tetra/facades/bash.rb', line 57 def mvn_in_kit @mvn_in_kit end |
Instance Method Details
#to_s ⇒ Object
68 69 70 |
# File 'lib/tetra/facades/bash.rb', line 68 def to_s generate("bashrc", binding) end |