Class: Rake::RemoteChef::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/remote_chef/core.rb

Defined Under Namespace

Classes: AttributesTemplate

Class Method Summary collapse

Class Method Details

.create_solo_rb(path) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/rake/remote_chef/core.rb', line 67

def self.create_solo_rb path
  open(path, 'w') do |io|
    open(solo_rb_template) do |i|
      io.write ERB.new(i.read).result(binding)
    end
  end
end