Class: TextTemplateMachineFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/scaffold/text_template_machine.rb

Class Method Summary collapse

Class Method Details

.create(shell) ⇒ Object



30
31
32
33
34
35
36
37
38
39
# File 'lib/scaffold/text_template_machine.rb', line 30

def self.create shell
  template_machine = TextTemplateMachine.new shell
  template_machine.placeholder_values = {
    'sh' => shell.shell_extension,
    ':' => shell.path_separator,
    '/' => shell.dir_separator,
    'rm' => shell.remove_command_name
  }
  template_machine
end