Class: Palmade::Cableguy::Builders::CableTemplate

Inherits:
Cable
  • Object
show all
Defined in:
lib/palmade/cableguy/builders/cable_template.rb

Instance Attribute Summary

Attributes inherited from Cable

#args

Instance Method Summary collapse

Methods inherited from Cable

add_as, build, build_key, builders, #initialize, supported_builders

Constructor Details

This class inherits a constructor from Palmade::Cableguy::Cable

Instance Method Details

#configure(cabler, cabling, target) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/palmade/cableguy/builders/cable_template.rb', line 5

def configure(cabler, cabling, target)
  cabler.say_with_time "configuring #{@args[0]}" do
    unless @args[1].nil?
      target_path = File.join(cabler.app_root, @args[1], @args[0])
    else
      target_path = nil
    end

    install_template(@args[0], cabler, cabling, target, target_path)
  end
end