class Shoestring::CopyConfigFile

Attributes

destination_file[R]
name[R]
source_file[R]

Public Class Methods

new(name, source_file, destination_file) click to toggle source
# File lib/shoestring/copy_config_file.rb, line 7
def initialize(name, source_file, destination_file)
  @name = name
  @source_file = source_file
  @destination_file = destination_file
end

Public Instance Methods

check() click to toggle source
# File lib/shoestring/copy_config_file.rb, line 13
def check
  unless File.exists?(destination_file)
    FileUtils.cp source_file, destination_file
  end
  puts "#{name}: check!"
end