Class: Tetra::Bashrc

Inherits:
Object
  • Object
show all
Includes:
Generatable
Defined in:
lib/tetra/facades/bash.rb

Overview

encapsulates variables in bashrc template

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Generatable

#generate, #template_path

Constructor Details

#initialize(history_file, ant_in_kit, ant_commandline, mvn_in_kit, mvn_commandline, gradle_commandline) ⇒ Bashrc



63
64
65
66
67
68
69
70
# File 'lib/tetra/facades/bash.rb', line 63

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_commandlineObject (readonly)

Returns the value of attribute ant_commandline.



58
59
60
# File 'lib/tetra/facades/bash.rb', line 58

def ant_commandline
  @ant_commandline
end

#ant_in_kitObject (readonly)

Returns the value of attribute ant_in_kit.



57
58
59
# File 'lib/tetra/facades/bash.rb', line 57

def ant_in_kit
  @ant_in_kit
end

#gradle_commandlineObject (readonly)

Returns the value of attribute gradle_commandline.



61
62
63
# File 'lib/tetra/facades/bash.rb', line 61

def gradle_commandline
  @gradle_commandline
end

#history_fileObject (readonly)

Returns the value of attribute history_file.



56
57
58
# File 'lib/tetra/facades/bash.rb', line 56

def history_file
  @history_file
end

#mvn_commandlineObject (readonly)

Returns the value of attribute mvn_commandline.



60
61
62
# File 'lib/tetra/facades/bash.rb', line 60

def mvn_commandline
  @mvn_commandline
end

#mvn_in_kitObject (readonly)

Returns the value of attribute mvn_in_kit.



59
60
61
# File 'lib/tetra/facades/bash.rb', line 59

def mvn_in_kit
  @mvn_in_kit
end

Instance Method Details

#to_sObject



72
73
74
# File 'lib/tetra/facades/bash.rb', line 72

def to_s
  generate("bashrc", binding)
end