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
Expose attributes for the ERB binding.
-
#ant_in_kit ⇒ Object
readonly
Expose attributes for the ERB binding.
-
#gradle_commandline ⇒ Object
readonly
Expose attributes for the ERB binding.
-
#history_file ⇒ Object
readonly
Expose attributes for the ERB binding.
-
#mvn_commandline ⇒ Object
readonly
Expose attributes for the ERB binding.
-
#mvn_in_kit ⇒ Object
readonly
Expose attributes for the ERB binding.
Instance Method Summary collapse
-
#initialize(history_file:, ant_in_kit:, ant_commandline:, mvn_in_kit:, mvn_commandline:, gradle_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:, gradle_commandline:) ⇒ Bashrc
Returns a new instance of Bashrc.
72 73 74 75 76 77 78 79 80 |
# File 'lib/tetra/facades/bash.rb', line 72 def initialize(history_file:, ant_in_kit:, ant_commandline:, mvn_in_kit:, mvn_commandline:, gradle_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 @gradle_commandline = gradle_commandline end |
Instance Attribute Details
#ant_commandline ⇒ Object (readonly)
Expose attributes for the ERB binding
69 70 71 |
# File 'lib/tetra/facades/bash.rb', line 69 def ant_commandline @ant_commandline end |
#ant_in_kit ⇒ Object (readonly)
Expose attributes for the ERB binding
69 70 71 |
# File 'lib/tetra/facades/bash.rb', line 69 def ant_in_kit @ant_in_kit end |
#gradle_commandline ⇒ Object (readonly)
Expose attributes for the ERB binding
69 70 71 |
# File 'lib/tetra/facades/bash.rb', line 69 def gradle_commandline @gradle_commandline end |
#history_file ⇒ Object (readonly)
Expose attributes for the ERB binding
69 70 71 |
# File 'lib/tetra/facades/bash.rb', line 69 def history_file @history_file end |
#mvn_commandline ⇒ Object (readonly)
Expose attributes for the ERB binding
69 70 71 |
# File 'lib/tetra/facades/bash.rb', line 69 def mvn_commandline @mvn_commandline end |
#mvn_in_kit ⇒ Object (readonly)
Expose attributes for the ERB binding
69 70 71 |
# File 'lib/tetra/facades/bash.rb', line 69 def mvn_in_kit @mvn_in_kit end |
Instance Method Details
#to_s ⇒ Object
82 83 84 |
# File 'lib/tetra/facades/bash.rb', line 82 def to_s generate("bashrc", binding) end |