Sha256: 752ccaea966790b538f9812d026d1a8b3b9c26c49f8f1bebad8fe2ccc174d7a5

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

require 'albacore/support/albacore_helper'

class Renamer
  include YAMLConfig
  include Failure
  
  attr_accessor :actual_name, :target_name
  
  def rename
    if (@actual_name.nil? || @target_name.nil?)
      fail "actual_name and target_name cannot be nil"
    else
      File.rename(@actual_name, @target_name)
    end
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
albacore-0.1.5 lib/albacore/renamer.rb
albacore-0.1.4 lib/albacore/renamer.rb
albacore-0.1.3 lib/albacore/renamer.rb
albacore-0.1.2 lib/albacore/renamer.rb